Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-638

XHtmlElementToWikiTranslator removes newlines

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.3
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              weberjn J├╝rgen Weber

              Dates

              • Created:
                Updated:

                Issue deployment