[ 
https://issues.apache.org/jira/browse/JSPWIKI-929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134750#comment-18134750
 ] 

Arturo Bernal commented on JSPWIKI-929:
---------------------------------------

Measured on master in a running instance (Tomcat 10.1, Chrome, default 
template), with two paragraphs in plain text and two in a quote block. In the 
HTML the first paragraph of the block is loose text and only the second one is 
inside a p element, which is what Dirk explained in 2016. In the page, the 
distance between the start of two paragraphs is 34 pixels in plain text (23 of 
the line and 11 of margin) and 23 pixels inside the quote block, because the 
loose first paragraph has no margin. So the paragraphs of a block are closer to 
each other than outside it, which is the difference of this report. A fix would 
be to always wrap the first content of a block in a p element, or to compensate 
in the style sheet; both change the HTML or the layout of every block. I tried 
only the quote block here; the information block behaves the same (see 
JSPWIKI-930). Leaving the issue open for that decision.

> Haddock – line breaks in quoted text
> ------------------------------------
>
>                 Key: JSPWIKI-929
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-929
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Templates and UI
>    Affects Versions: 2.10.3
>         Environment: Client is: 
> - Firefox 44.0.2 (Ubuntu 14.04). 
> Server is:
> - JSPWiki v2.10.2-svn-38 running in Payara Server 4.1
> - Container managed authentication is enabled using a file-based realm
> - HTTPS is enabled
> - JSPWiki policy is locked down such that only authenticated users have 
> access (both read and write)
>            Reporter: Dave Koelmeyer
>            Assignee: Dirk Frederickx
>            Priority: Minor
>         Attachments: JSPWiki-Quote-1.png, JSPWiki-QuotedTextMarkup.txt
>
>
> I can't quite put my finger on this, but it appears text when wrapped in a 
> %%quote appears with differing line/paragraph breaks compared to the same 
> text unquoted.
> I'll attach a screengrab and some sample markup.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to