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

XHtmlElementToWikiTranslator removes newlines

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.8.3
    • None
    • Editors
    • 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

            Unassigned Unassigned
            weberjn Jürgen Weber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: