On Wed, Aug 12, 2009 at 6:48 AM, Bill Hager <wha...@gmail.com> wrote:

> On Wed, Aug 12, 2009 at 12:43 AM, Nick Dokos <nicholas.do...@hp.com>wrote:
>
>> Bill Hager <wha...@gmail.com> wrote:
>>
>> > I don't seem to understand #+BEGIN_EXAMPLE and it's relation to html
>> > export.  What I think is that everything between a #+BEGIN_EXAMPLE and
>> > #+END_EXAMPLE should end up in <pre> tags when I do a HTML export with
>> C-c
>> > C-e b.  However, the reality is that everything ends up in a <p> tag for
>> me.
>> >
>> > My goal is to have sections of my org file end up in <pre> tags when I
>> HTML
>> > export.  Any ideas on how I can do this?
>> >
>> > I'm running the default emacs 22.2.1 on Ubuntu Jaunty.
>> >
>>
>> I can't reproduce this. I used the following simple org file:
>>
>> ,----
>> |
>> | * Test
>> |
>> | Here's an example:
>> |
>> | #+BEGIN_EXAMPLE
>> | This is a test.
>> | #+END_EXAMPLE
>> `----
>>
>> did C-c C-e h and got the attached html file. The example is
>> <pre>'d properly I think.
>>
>
> Thanks Nick.  That does help give me something to compare against.  I've
> attached my results from the same test you did with C-c C-e h showing <p>
> tags instead of <pre> tags for the BEGIN_EXAMPLE/END_EXAMPLE section.
>
> Thanks
>


I noticed that Nick was using emacs 23.  I downloaded and compiled 23.1 from
the GNU website.  The new version properly uses <pre> tags for
#+BEGIN_EXAMPLE.

- Bill
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to