arturobernalg opened a new pull request, #540:
URL: https://github.com/apache/jspwiki/pull/540

   JSPWIKI-638: https://issues.apache.org/jira/browse/JSPWIKI-638
   
   TextElementDecorator removed every line terminator of the XHTML text it 
translates, so "hello\nworld" became "helloworld", whereas a browser renders it 
as "hello world". A line terminator in text with content now becomes a space, 
and WhitespaceTrimWriter collapses the surplus. Whitespace-only nodes between 
elements (table rows, select options) still produce nothing, as the browser 
ignores them.
   
   The expected value in testBoldAndItalic (wiki and markdown translator tests) 
had the joined words "hiermal in allerDeutlichkeit" fixed in it; the input is 
"hier\nmal in aller\nDeutlichkeit". Both now expect the words separated.
   
   Tests: HtmlStringToWikiTranslatorTest#testLineBreakInTextIsWhitespace fails 
without the change ("helloworld") and passes with it. The jspwiki-wysiwyg, 
jspwiki-main and jspwiki-markdown suites pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to