Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-5895

Switching between editing modes doesn't preserve backslash escapes

    XMLWordPrintable

Details

    Description

      If you switch from the wiki markup editor to the rich text editor and then back, some of the backslashes used to escape special characters are dropped.

      To reproduce: enter the following text on a page

      ;; simple Lisp function
      (lambda \(x) x)  ;;  backslash necessary to prevent this becoming the smiley (x)
      escape a curly brace: \{foo.
      

      Save the page. Edit as wiki markup, then switch to rich text, and back to wiki markup. The first backslash is gone, so the code doesn't render appropriately, but the second one is preserved.

      Note that the rich text editor does preserve all backslashes inside a {noformat} block. That's not really enough, though: I'd like to be able to write small code snippets inline without the visual overhead of the panel or the space. A bigger issue, of course, is that switching between the two editing modes needs to preserve all content and all markup (however it may be displayed on the screen).

      Attachments

        Issue Links

          Activity

            People

              smansour Sherif Mansour
              d27061295b25 Richard Cobbe
              Votes:
              18 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: