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

Code Block eats newlines when pasted in

    XMLWordPrintable

Details

    Description

      On code copy pasted from Notepad into a Code Block macro, Confluence removes all the newlines from the block.

      Steps:

      Enter this in Notepad:

      printf("Hello world");
      
      printf("Testing testing");
      
      printf("Where are my newlines?");
      
      return 0;
      

      Make a new Confluence page. Insert a Code Block, language C#.

      Copy block from Notepad.

      Paste into Code Block.

      Notice that all the newlines are gone.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              ee52f4501dc2 Fast
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: