Maven 1.x XDoc Plugin

Too much whitespace in site.jsl script

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Any
  • Number of attachments :
    0

Description

There is too much whitespace in the site.jsl Jelly script that converts xdocs to HTML. This results in some ugly HTML option (especially when the original xdoc source document has a lot of HTML markup).

There is an easy fix: simply remove the whitespace from the last few Jelly templates in the stylesheet:

<!-- copy any other elements through -->
<jsl:template match="*" trim="false"><jsl:copy trim="false"><jsl:applyTemplates trim="false"/></jsl:copy></jsl:template>

<!-- element values don't pass through as text -->
<jsl:template match="@*"/>

<!-- CDATA and text nodes pass-thru -->
<jsl:template match="text()"><x:expr select="."/></jsl:template>

</jsl:stylesheet>

Activity

Hide
dion gillard added a comment -

Applied in xdoc 1.5-SNAPSHOT.
Not too much of a gain though

Show
dion gillard added a comment - Applied in xdoc 1.5-SNAPSHOT. Not too much of a gain though

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: