[
https://issues.apache.org/jira/browse/JSPWIKI-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131564#comment-18131564
]
ASF subversion and git services commented on JSPWIKI-638:
---------------------------------------------------------
Commit 5d82a254b24b511353addbf68ed737dba702ec18 in jspwiki's branch
refs/heads/master from spyhunter99
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=5d82a254b ]
Merge pull request #540 from arturobernalg/bug/JSPWIKI-638
JSPWIKI-638 Translate line breaks within text to a space in the HTML …
> XHtmlElementToWikiTranslator removes newlines
> ---------------------------------------------
>
> Key: JSPWIKI-638
> URL: https://issues.apache.org/jira/browse/JSPWIKI-638
> Project: JSPWiki
> Issue Type: Bug
> Components: Editors
> Affects Versions: 2.8.3
> Reporter: Jürgen Weber
> Priority: Minor
> Labels: pull-request-available
>
> I tried to append an html source using rpc to JSPWiki.
> a browser renders <html>hello\nworld</html> as "hello world"
> but HtmlStringToWikiTranslator creates a wiki text of helloworld without a
> blank.
> I suggest to change
> com.ecyrd.jspwiki.htmltowiki.XHtmlElementToWikiTranslator.print(Object)
> the line after // remove all "line terminator" characters
> replace with blank instead of empty string.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)