From: Carsten Dominik <carsten.dominik@gmail.com>
To: mail@christianmoe.com
Cc: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>, emacs-orgmode@gnu.org
Subject: Re: Org-special-blogs does not make well-formed xhtml
Date: Tue, 4 Oct 2011 23:33:50 +0200 [thread overview]
Message-ID: <2704BF81-08C0-4616-AFF1-20797E42CAE3@gmail.com> (raw)
In-Reply-To: <4E8B57FB.5040808@christianmoe.com>
Hi Christian,
for now I have reverted the patch. WOuld you like to work on a better one?
- Carsten
On 4.10.2011, at 21:01, Christian Moe wrote:
> Hi,
>
> Carsten, thanks.
>
> Jambunathan's probably right, though, that this fix (while necessary) is incomplete. Sorry, I hadn't thought it through.
>
> Now, when the first paragraph of a special block comes right after the #+BEGIN_WHATEVER line, it will just come as the first text node of the <div> block, and will not be wrapped in a <p> element. So among other things, any special CSS styling for <p>s will not be applied to it.
>
> It's not a big deal -- if you need a <p> (and often you really don't) the workaround is as simple as leaving an empty line between #+BEGIN_WHATEVER and the first paragraph.
>
> But I guess it would be more consistent/expected/helpful behavior for special-blocks to start a new paragraph -- this time *after* the opening <div> tag and not around it!
>
> Yours,
> Christian
>
>
> On 10/4/11 4:36 PM, Jambunathan K wrote:
>>
>> Carsten Dominik<carsten.dominik@gmail.com> writes:
>>> I see no reason to not uncomment this line. Shall we just do this?
>>
>> Shouldn't a paragraph be opened/closed while entering/leaving the div.
>>
>> ,---- See org-xhtml-format-environment
>> | (center
>> | (case beg-end
>> | (BEGIN
>> | (org-lparse-end-paragraph)
>> | (insert "\n<div style=\"text-align: center\">")
>> | (org-lparse-begin-paragraph))
>> | (END
>> | (org-lparse-end-paragraph)
>> | (insert "\n</div>")
>> | (org-lparse-begin-paragraph))))
>> `----
>>
>> We can always open a paragraph gratis, because empty paragraphs are
>> pruned at the end of export.
next prev parent reply other threads:[~2011-10-04 21:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-03 12:44 Org-special-blogs does not make well-formed xhtml Christian Moe
2011-10-03 13:26 ` Sebastien Vauban
2011-10-04 11:23 ` Carsten Dominik
2011-10-04 12:45 ` Christian Moe
2011-10-04 14:22 ` Carsten Dominik
2011-10-04 14:36 ` Jambunathan K
2011-10-04 19:01 ` Christian Moe
2011-10-04 21:33 ` Carsten Dominik [this message]
2011-10-06 10:17 ` Christian Moe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2704BF81-08C0-4616-AFF1-20797E42CAE3@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@christianmoe.com \
--cc=wxhgmqzgwmuf@spammotel.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.