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

Code Macro when exporting to PDF any page that contains syntax-highlighted code does not work

XMLWordPrintable

      When try to create a code macro in a page as this following example:

      // test
      name='blue'
      

      after this, when export to PDF the highlight doesn't work.
      Also in the Confluence log is thrown many of this log related to this bug:

      2012-05-24 18:19:26,207 WARN [http-8080-4] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://28.0:1/sh/scripts/shBrushJava.js:50: TypeError: Cannot read property "Highlighter" from undefined (bundle://28.0:1/sh/scripts/shBrushJava.js#50)
       -- referer: http://localhost:8080/display/ds/xxxxxx | url: /spaces/flyingpdf/pdfpageexport.action | userName: admin | action: pdfpageexport | page: 1048578
      org.mozilla.javascript.EcmaError: TypeError: Cannot read property "Highlighter" from undefined (bundle://28.0:1/sh/scripts/shBrushJava.js#50)
      
      2012-05-23 17:00:46,822 WARN [http-8280-7] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://28.0:1/sh/src/shCore.js:32: ReferenceError: "XRegExp" is not defined. (bundle://28.0:1/sh/src/shCore.js#32)
      – referer: https://acropolis/confluence/display/LAB/VM+Specs | url: /confluence/spaces/flyingpdf/pdfpageexport.action | userName: esegall | action: pdfpageexport | page: 136020960
      org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://28.0:1/sh/src/shCore.js#32)
      at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229)
      at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219)
      at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3292)
      at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1636)
      at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1575)
      at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3162)
      at script(bundle://28.0:1/sh/src/shCore.js:32)
      at script(bundle://28.0:1/sh/src/shCore.js:21)
      

              kfchong KaiA
              bacevedo Bernardo Acevedo [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: