emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [patch] Don't output preamble DIV if its contents is empty


From: Sebastien Vauban
Subject: Re: [O] [patch] Don't output preamble DIV if its contents is empty
Date: Sun, 09 Oct 2011 20:34:25 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (windows-nt)

Hi Carsten,

Carsten Dominik wrote:
>> To be sure that CSS rules don't apply to missing contents, there's no need
>> to output DIV preamble opening and closing tags if there is nothing in
>> between.
>
> are there adverse effects when an empty div is in the file?

Yes, there are, reason for such patch.

In some style I'm working on for the site I'm publishing, I'm using a quite
large banner in black background as site's preamble. That works OK.

But, even for exporting a single page (no publish, I mean, just `C-x C-e b'),
I got this black background coming into play, while I had *no preamble set* for
those orphan pages.

Hence, the patch to remove such a preamble when it is essentially empty.

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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