From: Ian Barton <lists@manor-farm.org>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Obscure Bug with HTML Export if Directory Starts with an Underscore
Date: Thu, 17 Dec 2009 08:30:16 +0000 [thread overview]
Message-ID: <4B29EC18.2010808@manor-farm.org> (raw)
In-Reply-To: <6724D66A-1B84-4020-B502-95B21F22E300@gmail.com>
Carsten Dominik wrote:
> Hi Ian,
>
> thank you for your report.
>
> This has nothing to do with the directory starting with an underscore.
> What is happening here is that Org-mode uses the first line in the buffer,
> "-----" in your case as the title of the document since no other title
> is defined. Of course, the body-only export then discards the "title",
> and you end up without your first line.
>
> You could fix this with a dummy #+TITLE: line, or by putting anything at
> all
> in a earlier line, even above #+STARTUP, or by setting the :title option
> in your publishing setup.
>
> Another way would be
>
> ------------------------------------------------------------------------
> #+STARTUP: showall indent
> #+STARTUP: hidestars
> #+OPTIONS: H:2 num:nil tags:nil toc:1 timestamps:t
> #+TITLE: ADSL Connection Problems.
> #+BEGIN_HTML
> ---
> layout: post
> title: {{{title}}}
> tags: [gadgets, linux, test]
> excerpt: Problems, problems!
> ---
> #+END_HTML
> Main text of post goes here.
> ------------------------------------------------------------------------
>
> i.e using the {{{title}}} macro to insert the title into the right
> place while having #+TITLE around to stop Org from grabbing
> the first line.
>
> One could also question if it makes sense to grab the title from
> the buffer if body-only is set, and I have now changed it so
> that in this case it will *not* take the title from buffer text.
>
Thanks for the explanation and list of fixes.
> Hope something here will help you - these are murky waters.
>
It's a good job that you have X-ray vision:)
Ian.
prev parent reply other threads:[~2009-12-17 8:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 11:44 Obscure Bug with HTML Export if Directory Starts with an Underscore Ian Barton
2009-12-16 23:17 ` Carsten Dominik
2009-12-17 8:30 ` Ian Barton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B29EC18.2010808@manor-farm.org \
--to=lists@manor-farm.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).