Uploaded image for project: 'Maven Skins'
  1. Maven Skins
  2. MSKINS-86

class prettyprint not added to pre tags

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: fluido-1.3.0
    • Fix Version/s: fluido-1.4
    • Component/s: Fluido Skin
    • Labels:
      None
    • Environment:
      maven-site-plugin 3.3
    • Flags:
      Patch

      Description

      When generating site with maven-site-plugin 3.3, the class prettyprint isn't added to pre tags, because in version 3.3, there's a newline between <div class="source"> and <pre>, so the replacement in fluido site template fails and syntax highlighting and line numbering isn't working.

      $bodyContent.replaceAll( "<div class=\"source\"><pre>", "<div class=\"source\"><pre class=\"$sourceStyle\">" )
      

      should be

      $bodyContent.replaceAll( "<div class=\"source\">\\s*<pre>", "<div class=\"source\"><pre class=\"$sourceStyle\">" )
      

        Attachments

        1. fluido.patch
          0.8 kB
          Michael Kurz

          Issue Links

            Activity

              People

              • Assignee:
                michael-o Michael Osipov
                Reporter:
                mkurz Michael Kurz
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: