Quoting Janne Jalkanen <Janne.Jalkanen ecyrd.com>:
>> I've noticed that the first paragraph of text
generated by JSPWiki
>> is not enclosed in <p> tags unless I put a
blank line at the top of
>> the page text. Since the MarkupParser generates a
DOM tree, I
>> guess the issue lies there. Is this behavior
intentional? If so
>> why and what does everyone think about it? I'd
rather have it in
>> <p> tags...
>
> The trouble is that if we translate just a single
sentence, we don't
> want the <p> -tag. This is true for quite a lot
of different
> applications.
>
> There should be some logic which says that "if
there is more than one
> paragraph, then the first one should be a paragraph,
too". But I'm not
> quite sure how to handle that.
Janne,
Rather than do this at the front end of the parse, why not
do it at
the tail? I.e., check the JDOM tree and wrap the first
element in a
paragraph Element if it stands alone?
Murray
............................................................
...............
Murray Altheim <murray06 altheim.com>
=== = =
http://www.altheim.com
/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk
= = = =
In the evening
The rice leaves in the garden
Rustle in the autumn wind
That blows through my reed hut. -- Minamoto no
Tsunenobu
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users ecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
a>
|