Hi all!

In some cases, when we use CSS styles, the html output doesn't create
a paragraph for text outside the style. I don't know if it is
expected, but i'm posting some examples for discussion.

My JSPWiki version is 2.4.102.

Case 1 - Should a style markup alone in a line followed by a blank
line output a paragraph to html?

MARKUP
%%menu test1%%

HTML
 test1

Case 2 - This case seems right in my point of view

MARKUP
text %%menu test1%%

HTML
<p>text test1
</p>

Case 3 - In this case, even the text after the style is not inside a
paragraph.

MARKUP
%%menu test1%% text

HTML
teste1 text


The main reason i'm asking about it is because i often need to:

%%menu Menu A%% - despription

%%menu Menu B%% - description

OR

%%menu Menu A%%

%%menu Menu B%%

And the output i expected was two paragraphs and i get both text
rendered in the same line in the browser. The workaround i'm using for
now is to insert a space before the style markup.

Regards,

Fabiano.
-- 
View this message in context: 
http://www.nabble.com/Styles-and-paragraph-tf4806654.html#a13751762
Sent from the JspWiki - User mailing list archive at Nabble.com.

Reply via email to