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

Pasting Codes from Code Block Macro into a Text Editor Creates Additional Lines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Low
    • None
    • 6.4.2, 6.4.3
    • Macros - Other Macros

    Description

      When multiple lines of codes from Code Block Macro are copied and pasted into a text editor, additional line breaks are added.

      Steps To Reproduce

      1. Create a new page.
      2. Add Code Block Macro with a few lines of codes, e.g.:
        public static void main(String[] args)
        {
          System.out.println("Hello World!");
        }
        
      1. Save the page.
      2. Highlight the code and press Ctrl+C to copy code selection to clipboard.
      3. Press Ctrl+V to paste the clipboard contents into the Text Editor/Notepad++.
      Actual Behavior

      The code copied to text editor

       

      Workaround

      user can opt to another browsers(Microsoft Edge, Chrome, Firefox) as a workaround, as this issue only occurs in IE 11.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mzakaria@atlassian.com Zulfarhan Zakaria (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: