Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20278

XWiki syntax escaping duplicates newlines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.1-milestone-1
    • Rendering
    • None
    • Unknown

    Description

      When escaping text that contains newlines for XWiki syntax and parsing/rendering the resulting text, newlines are duplicated if the original text contained \r\n as line break. This is because $services.rendering.escape escapes \r\n as

      ~\r~\n

      . For example the input

      Hello
      World
      Document
      

      becomes

      ~H~e~l~l~o~
      ~
      ~W~o~r~l~d~
      ~
      ~D~o~c~u~m~e~n~t
      

      .

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: