closing paragraphs </p> (Was Re: [Pmwiki-users] Another idea bef..)
Paul Williams
paul
Wed Jan 14 11:37:08 CST 2004
Christian,
The tag is <br>, and <br/> is XML shorthand for
<br></br>...
Cheers
~ Paul
--- Christian_Ridderström <chr at home.se> wrote:
> On Wed, 14 Jan 2004, Patrick R. Michaud wrote:
>
> > On Wed, Jan 14, 2004 at 03:35:26PM +0100,
> Christian Ridderström wrote:
> > >
> > > Where '\\\' was used for breaking and creating a
> new paragraph, i.e.
> > > inserting <P>.
> >
> [snip]
> >
> > In XHTML this has to be generated as
> >
> > <li>Start of long line.
> > <p>New paragraph <br />
> > New line</p>
> > <p>New paragraph</p></li>
> >
> > and finding the locations for the </p>'s can be a
> bit tricky. In many
> > respects I'd like to eliminate the <p>'s from
> PmWiki's output entirely,
> > and just replace them with <br /><br /> so that I
> don't have to deal with
> > the containerization issues.
>
> Doesn't <br/> need a closing tag? (I've got *no*
> clue about XHTML)
>
> Just replacing <p>'s with <br/></br> is ugly IMO,
> because we remove the
> information that a new paragraph is started. So we
> should only do that if
> we want a blank line, and not something else.
>
> As for implementation, isn't this the same kind of
> problem as for
> closing a list item? (Guess I'll have to dive into
> pmwiki.php sometime
> soon.)
>
> Oh, and at the moment, is it possible to a create
> new paragraph while
> inside for instance a list item?
>
> One solution would be using a stack where you push
> things like '</p>'
> onto, and before leaving the list item you pop it.
>
> But I guess this assumes a general structure where
> tokens are parsed etc,
> rather than *only* substituting regexps....
>
> Speaking of which, how is '\' at the end of a line
> handled? Is the '\'
> stripped and the next line simply appended to the
> current variable
> representing the current line?
>
> If this is the case, I don't understand why a '\' at
> the end of a line
> produces a space:
>
>
http://www.pmichaud.com/wiki/Test/LineContinuationAndWhitespace
>
> /Christian
>
> --
> Dr. Christian Ridderström, +46-8-768 39 44
> http://www.md.kth.se/~chr
>
>
> --
> 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