Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-75244

Pasting commands with backslash directly on a page duplicates the backslash on the commands

    XMLWordPrintable

Details

    Description

      Issue Summary

      Pasting commands with backticks and backslash directly to a blank page will add the code snippet with the command, but the backslashes on the command will get duplicated

      Steps to Reproduce

      • Copy this text

        code
        ```
        back slash \ with
        to see what happens
        ```
        check

        (will attach an image in case the editor modifies the command)

      • Create a new page (or edit an existing page)
      • Paste the copied command
      • The backslash will get duplicated

      Expected Results

      The command should be pasted as it was copied

      code

       back slash \ with \\ to see what happens 

      check

      Image of expected result in the page

      Actual Results

      This is the actual result 

      code

       back slash \\ with \\\\ to see what happens 

      check

      Image of actual result in the page

      Workaround

      The workaround is to create the Code snippet first from the toolbar and then copy the commands into the code snippet.

      Attachments

        1. text command.png
          text command.png
          20 kB
        2. Expected result.png
          Expected result.png
          12 kB
        3. Actual result.png
          Actual result.png
          12 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              573b6c90594a Daniel M.
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: