[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] HTML export problems

From: Sebastian Rose
Subject: Re: [Orgmode] HTML export problems
Date: Sat, 23 Aug 2008 22:35:39 +0200
User-agent: Mozilla-Thunderbird (X11/20080724)

Hello David,

yes, there is no paragraph around it. Trying to be helpful, I can
only come up with an ugly temporary fix for this. I'm shure it will
be a temporary one only. It's a little JavaScript again that should
work in fairly modern browsers.

If you do not use org-info.js, build your head section this way:



<script type="text/javascript" language="JavaScript">
/* <![CDATA[ */

function wrapTextBeforeFirstHeadline () {
  var b = document.getElementsByTagName('body')[0];
  var n = b.firstChild;
  var neu = n.cloneNode(true);
  var p = document.createElement("p");
  p.id = "text-before-first-headline";
  b.replaceChild(p, n);
/* ]]> */
<body onload="wrapTextBeforeFirstHeadline();">

This is the Text before the first headline.


If you use org-info.js, simply replace your local one with the version
attached. It will wrap the text before the first headline into a

<p id="text-before-first-headline">TEXT...</p>


David O'Toole wrote:
The first paragraph before any heading is exported, but without
surrounding P paragraph tags; the remaining paragraphs (whether before
other headings, or after those headings) all have P tags and this is
messing up the styling. I'm using org-version 6.06b.

#+OPTIONS skip:nil is on.

Attachment: org-info.js.gz
Description: GNU Zip compressed data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]