[pmwiki] Re: [Pmwiki-users] problems with returns and paragraphs
Patrick R. Michaud
pmichaud at pobox.com
Sun Jun 29 07:29:34 CDT 2003
There's a chance. I started to render paragraphs as <p>text</p> instead of
using <p /> but ran into a few complications so I went with what "worked"
to get the 0.5.0 release finished and figured I could revisit it
later if needed.
So, I'll have to take a look at it and see what I can do.
Pm
On Sun, Jun 29, 2003 at 02:00:22PM +0200, Bernhard Weichel in pmwiki-users wrote:
> Hi,
>
> I would like to raise the following questions
> (theoretical background at the end of the mail if someone is interested).
>
> Is there a chance to render
>
> >>-------
>
> !!hola
> give it a try
>
> this is a paragraph
>
> and this is the second paragraph
>
> ----------<<
>
> to
>
> <p />
> <h2>hola</h2>
> <p>give it a try</p>
> <p>this is a paragraph</p>
> <p>and this is the second paragraph</p>
> <p />
> <pre > and some preformatted text
> with preformatted text
>
> </pre>
> <p>and a paragraph</p>
> <p>another paragraph</p>
> <p />
>
> instead of
>
> <p /><h2>hola</h2>
> <p />give it a try
> <p />this is a paragraph
> <p />and this is the second paragraph
> <p /><pre > and some preformatted text
> with preformatted text
>
> </pre>and a paragraph
> <p />another paragraph
> <p /><p />
>
> I a agree, that the current rendering is xhtml compliant.
> But only by law but not by spirit.
>
> The first rendering would definitely give more options for CSS based
> styling.
>
> --Bernhard
>
> Background:
>
> PmWiki generates the XHTML paragraph always as empty elements.
>
> <P /> instead of <P> what it was at HTML.
>
> <P> in HTML did not indicate the space between two paragraphs.
> It was rather a minimized <P> ... </P> sequence.
> In the SGML version of HTML the declaration was
>
> <!element P - o (%inline;) >
>
> This means that the endtag can be omitted. In XML it is:
>
> <!ELEMENT p %Inline;>
>
> which means that the endtag must not be omitted.
>
> The context of paragraphs is %flow;
>
> <!ENTITY % block
> "p | %heading; | div | %lists; | %blocktext; | fieldset | table">
>
> <!ENTITY % Block "(%block; | form | %misc;)*">
>
> <!-- %Flow; mixes block and inline and is used for list items etc. -->
> <!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">
>
>
> This shows the intention, that paragraphs should be marked up explicitly
> and not as empty paragraphs messed into text.
>
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>
More information about the pmwiki-users
mailing list