[ 
https://jira.codehaus.org/browse/MSKINS-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Kurz updated MSKINS-86:
------------------------------

    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. 
{noformat}
$bodyContent.replaceAll( "<div class=\"source\"><pre>", "<div 
class=\"source\"><pre class=\"$sourceStyle\">" )
{noformat}
should be
{noformat}
$bodyContent.replaceAll( "<div class=\"source\">\\s*<pre>", "<div 
class=\"source\"><pre class=\"$sourceStyle\">" )
{noformat}

  was: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\">" )}}.

    
> class prettyprint not added to pre tags
> ---------------------------------------
>
>                 Key: MSKINS-86
>                 URL: https://jira.codehaus.org/browse/MSKINS-86
>             Project: Maven Skins
>          Issue Type: Bug
>          Components: Fluido Skin
>    Affects Versions: fluido-1.3.0
>         Environment: maven-site-plugin 3.3
>            Reporter: Martin Kurz
>
> 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. 
> {noformat}
> $bodyContent.replaceAll( "<div class=\"source\"><pre>", "<div 
> class=\"source\"><pre class=\"$sourceStyle\">" )
> {noformat}
> should be
> {noformat}
> $bodyContent.replaceAll( "<div class=\"source\">\\s*<pre>", "<div 
> class=\"source\"><pre class=\"$sourceStyle\">" )
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to