emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with BEGIN_CENTER
@ 2009-03-19  5:32 Baoqiu Cui
  2009-03-19 16:40 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Baoqiu Cui @ 2009-03-19  5:32 UTC (permalink / raw)
  To: emacs-orgmode

It seems that the newly added feature BEGIN_CENTER only supports *one*
paragraph, i.e. only the first paragraph after BEGIN_CENTER will be
centered in exported HTML format.

For example, for the following lines in my Org file:

    #+BEGIN_CENTER
    Everything should be made as simple as possible, \\
    but not any simpler
    
    Repeat the above paragraph:
    
    Everything should be made as simple as possible, \\
    but not any simpler
    #+END_CENTER

I get the following HTML code, which, strictly speaking, contains a bug
because <p> is nested:

    <p style="text-align: center">
    Everything should be made as simple as possible, <br/>
    but not any simpler
    
    <p>
    Repeat the above paragraph:
    </p>
    <p>
    Everything should be made as simple as possible, <br/>
    but not any simpler
    </p>
    </p>

Is this the expected behavior?  I am trying to support this feature in
DocBook exporter, and would like to make BEGIN_CENTER work on multiple
paragraphs.

Baoqiu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-19 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19  5:32 Problem with BEGIN_CENTER Baoqiu Cui
2009-03-19 16:40 ` Carsten Dominik

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).