[
https://issues.apache.org/jira/browse/JSPWIKI-929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172683#comment-15172683
]
brushed commented on JSPWIKI-929:
---------------------------------
Dave,
The reason for this behaviour is the way jspwiki renders the DOM.
The first content of a block is always rendered as a DOM text-node (with no
css formatting). Subsequent content blocks are rendered as <p> paragraphs.
You could fix the formatting issue by inserting an empty line at the beginning
of the %%quote block. This will force a <p> element as the first content
block, and the line breaks will be correct.
I do not know what is the best solution for this.
Maybe we should re-view the way the jspwiki engine generates the DOM: DOM
text-node elements should only be generated if they are the only children of a
DOM element, and thus not allowing "mixed" DOM content.
More thinking needed...
dirk
> 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: brushed
> 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
(v6.3.4#6332)