|
Re: [pmwiki] Re: problems with returns and paragraphs: msg#00148web.wiki.pmwiki.user
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@xxxxxxxxxxxx > http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [pmwiki] Re: problems with returns and paragraphs: 00148, Bernhard Weichel in pmwiki-users |
|---|---|
| Next by Date: | Re: [pmwiki] Re: problems with returns and paragraphs: 00148, Bernhard Weichel in pmwiki-users |
| Previous by Thread: | Re: [pmwiki] Re: problems with returns and paragraphsi: 00148, Bernhard Weichel in pmwiki-users |
| Next by Thread: | Re: [pmwiki] Re: problems with returns and paragraphs: 00148, Bernhard Weichel in pmwiki-users |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |