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

XHtmlElementToWikiTranslator removes newlines

    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
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: