emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: "[emacs-orgmode]" <emacs-orgmode@gnu.org>
Subject: Re: HTML export problems
Date: Sat, 23 Aug 2008 22:35:39 +0200	[thread overview]
Message-ID: <48B0749B.8070001@gmx.de> (raw)
In-Reply-To: <1219519648.27880.3.camel@pod.lab>

[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]

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:


------>8------>8------>8------>8------>8------>8------

<html>
<head>

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

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

This is the Text before the first headline.


------8<------8<------8<------8<------8<------8<------



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>

element.




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 #2: org-info.js.gz --]
[-- Type: application/x-gzip, Size: 15083 bytes --]

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  parent reply	other threads:[~2008-08-23 20:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-23 19:27 HTML export problems David O'Toole
2008-08-23 20:17 ` Jesse Alama
2008-08-23 21:36   ` David O'Toole
2008-08-23 22:22     ` Jesse Alama
2008-08-23 20:35 ` Sebastian Rose [this message]
2008-09-07 15:41 ` Carsten Dominik

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=48B0749B.8070001@gmx.de \
    --to=sebastian_rose@gmx.de \
    --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).