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

class prettyprint not added to pre tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • fluido-1.3.0
    • fluido-1.4
    • Fluido Skin
    • None
    • maven-site-plugin 3.3
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: