Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-819

Forge Maven Skin: line numbers failing when using maven-site-plugin 3.3

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When the "sourceLineNumbers" setting is on and the site is rendered by maven-site-plugin version 3.3, no source line numbers are shown.

      The reason is this piece of code in site.vm:863
      $bodyContent.replaceAll( "<div class=\"source\"><pre>", "<div class=\"source\"><pre class=\"$sourceStyle\">" )

      maven-site-plugin version 3.1 renders html markup "<div class=\"source\"><pre>"
      maven-site-plugin version 3.3 renders html markup "<div class=\"source\">
      <pre>"

      Note the pre on the next line so the replaceAll is not finding anything!

      Attachments

        Issue Links

          Activity

            People

              jhoffman Jeroen Hoffman
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: