HTML space exports produce uncompiled LESS stylesheets

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.17.1
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      The HTML site export feature produces an uncompiled LESS stylesheet in the output. This prevents the output pages from receiving portions of styling. It is believed that this issue affects PDF exports as well.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Export a space as HTML
      2. View an exported page in the browser.

      Expected Results

      Confluence produces an HTML export containing compiled native CSS, which allows the browser to apply standard Confluence styling to the exported content.

      Actual Results

      Confluence produces an HTML export containing uncompiled LESS, which the browser is not able to parse. The exported content appears partially unstyled when viewed in the browser.

      The excerpt below is from the /styles/site.css file generated in the export:

      @import "colors.less";
      
      /* wiki-content.css */
      
      /**
       * AUI Overrides
       * see /includes/css/aui-overrides.css
       */
      .rounded-corners (@radius: 5px) {
        -moz-border-radius: @radius;
        -webkit-border-radius: @radius;
        border-radius: @radius;
      }
      
      .wiki-content {
        .header, .footer, .cell {
          margin: 8px 0;
          box-sizing: border-box;
          word-wrap: break-word;
          .rounded-corners;
        }
        ...
      }
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

            Assignee:
            Unassigned
            Reporter:
            Atlas Foulks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: