From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Export HTML with Free Form Text Date: Tue, 13 May 2014 13:15:47 -0400 Message-ID: <4f60b9ee200457d31ba459635c819dc3@mail.rickster.com> References: <87iop9hgaa.fsf@quasar.esben-stien.name> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkGJ4-0005iE-1O for emacs-orgmode@gnu.org; Tue, 13 May 2014 13:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkGIx-00005U-2X for emacs-orgmode@gnu.org; Tue, 13 May 2014 13:15:57 -0400 Received: from mail.rickster.com ([204.62.15.78]:47811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkGIw-0008VS-V9 for emacs-orgmode@gnu.org; Tue, 13 May 2014 13:15:50 -0400 In-Reply-To: <87iop9hgaa.fsf@quasar.esben-stien.name> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Esben Stien Cc: emacs-orgmode@gnu.org On 2014-05-13 11:03, Esben Stien wrote: > If I have a heading like this: > ** foo > bar > baz > > ..and I export it to html, it comes out like this: > > ** foo > bar baz > > Is there any way to tell export that free form text like this is > allowed? What you want is verbatim text, or "Literal examples", not really free-form. HTML by definition treats runs of whitespace as a single space, so you need to do something to get it to treat the text as separate lines. You have (at least ;) two choices in org: example blocks or verse block. Here's an example: ---- 8< cut here 8< ----- * Literal text #+BEGIN_VERSE this is a verse #+END_VERSE #+BEGIN_EXAMPLE this is a verse #+END_EXAMPLE And the html output: #+BEGIN_HTML

this
  is
    a
verse

this
is
a
verse
#+END_HTML