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

"View wiki markup" does not preserve whitespace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Medium
    • None
    • 2.10
    • None

    Description

      The leading whitespace characters of lines in a {noformat} macro block are removed when rendered by a browser, such that a page can not be reproduced accurately without the ability to edit it:

      Show Wiki Markup Page

      Show Wiki Markup Page Source
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
          <title>View Source - Confluence</title>
              
      
                  
      <meta id="confluence-context-path" name="confluence-context-path" content="">
      
      <script type="text/javascript">
          // Deprecated global variables. To be removed in a future version of Confluence.
          var contextPath = '';
          var i18n = [];
      </script>
      
          
      
      <!-- include system resources -->
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/master.css" title="Confluence Master Stylesheet" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/wiki-content.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/tabs.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/menu.css" media="all"/>
      <!--[if IE]>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/menu-ie.css" media="all"/>
      <![endif]-->
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/tables.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/panels.css" media="all"/>
      <!--[if IE]>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/master-ie.css" title="Master-IE" media="all"/>
      <![endif]-->
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/renderer-macros.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/content-types.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/information-macros.css" media="all"/>
      <link type="text/css" rel="stylesheet" href="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Amaster-styles/layout-macros.css" media="all"/>
      <script type="text/javascript" src="/s/1517/13/1.0/_/download/resources/confluence.web.resources%3Aatlassian-effects/atlassian-effects.js" ></script>
      
      <!-- end system resources -->
      
          <link rel="stylesheet" href="/s/1517/13/13/_/styles/combined.css" type="text/css">
      
          <meta name="robots" content="noindex,nofollow">
          <meta name="robots" content="noarchive">
          <meta name="confluence-request-time" content="1231806164873">
      
          <link rel="shortcut icon" href="/favicon.ico">
          <link rel="icon" type="image/png" href="/images/logo/confluence_16.png">
      
      <link rel="search" type="application/opensearchdescription+xml" href="/opensearch/osd.action" title="Confluence"/>
      
      </head>
      <body id="com-atlassian-confluence" class="popup" onload="placeFocus()">
          <div id="main">
              <h1>View Source</h1>
      
              <div id="content">
                  <div class="monospaceInput">
              <div class="padded">
                  Run WebLogic 9.2 &amp; MySQL 5.0 \[Linux, ix86\] Dev.json
      <br>{noformat:title=Run WebLogic 9.2 &amp; MySQL 5.0 \[Linux, ix86\] Dev.json}
      <br>{
      <br>    &quot;MachineSpecs&quot;: [
      <br>        {
      <br>            &quot;chosenMachines&quot;: &quot;Any Compatible Machine&quot;,
      <br>            &quot;imageName&quot;: &quot;CentOS 5.2 [ix86] (WebLogic 9.2, MySQL 5.0)_1&quot;,
      <br>            &quot;is_exact_ram&quot;: &quot;False&quot;,
      <br>            &quot;pre_boot_delay&quot;: &quot;0&quot;,
      <br>            &quot;primitive_set&quot;: [
      <br>                {
      <br>                    &quot;name&quot;: &quot;Install Software&quot;,
      <br>                    &quot;software&quot;: &quot;SG:GROUP - Development and Testing Bundle&quot;
      <br>                }
      <br>            ],
      <br>            &quot;ram_size&quot;: &quot;1024&quot;,
      <br>            &quot;role_adapters&quot;: [],
      <br>            &quot;specName&quot;: &quot;ix86&quot;
      <br>        }
      <br>    ],
      <br>    &quot;_version&quot;: &quot;v20080204&quot;,
      <br>    &quot;action_on_error&quot;: &quot;Hold Machine&quot;,
      <br>    &quot;action_on_time_out&quot;: &quot;Terminate Job&quot;,
      <br>    &quot;auto_release_on_poweroff&quot;: &quot;True&quot;,
      <br>    &quot;created_by&quot;: &quot;admin&quot;,
      <br>    &quot;description&quot;: &quot;BEA WebLogic 9.2, MySQL 5.0, CentOS 5.2, ix86 with Development bundle&quot;,
      <br>    &quot;job_name&quot;: &quot;Run WebLogic 9.2 &amp; MySQL 5.0 [Linux, ix86] Dev&quot;,
      <br>    &quot;job_switches&quot;: [
      <br>        {
      <br>            &quot;lm_network&quot;: &quot;Default Public Network&quot;,
      <br>            &quot;name&quot;: &quot;LMSwitch-0&quot;
      <br>        }
      <br>    ],
      <br>    &quot;job_type&quot;: &quot;lm-advanced-job&quot;,
      <br>    &quot;release_resources_in_end&quot;: &quot;True&quot;,
      <br>    &quot;time_out&quot;: &quot;0&quot;
      <br>}
      <br>\{noformat\}
              </div>
          </div>
              </div>
          </div>
      
          
      <div id="footer">
                          <ul id="poweredby">
              <li class="noprint">Powered by <a href="http://www.atlassian.com/software/confluence" class="smalltext">Atlassian Confluence</a> 2.10.1-rc3, the <a href="http://www.atlassian.com/software/confluence" class="smalltext">Enterprise Wiki</a>.</li>
              <li class="print-only">Printed by Atlassian Confluence 2.10.1-rc3, the Enterprise Wiki.</li>
              <li class="noprint"><a href="http://jira.atlassian.com/secure/BrowseProject.jspa?id=10470" class="smalltext">Bug/feature request</a> &#8211;</li>
              <li class="noprint"><a href="http://www.atlassian.com/about/connected.jsp?s_kwcid=Confluence-stayintouch" class="smalltext">Atlassian news</a> &#8211;</li>
              <li class="noprint"><a href="/administrators.action">Contact administrators</a></li>
          </ul>
      </div>
      </body>
      </html>
      

      You can see in the page source, that the whitespace does exist, but since it is not rendered as a pre-format block, the spacing is ignored by the browser. Also note, that I've had to manually escape the last {noformat} block in the above page source so that it will render correctly.

      Wiki Markup when cut and pasted

      Please note I've had to create a screen shot here, as the markup contains a {noformat} block.

      Example page on EAC: Noformat square brackets in title escape test
      Example page on CAC: Noformat square brackets in title escape test

      This report uses the same Confluence page for demonstration as per CONF-14185.

      Attachments

        Issue Links

          Activity

            People

              jmasson@atlassian.com John Masson
              pdzwart PdZ (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: