jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x XDoc Plugin
  • MPXDOC-37

Too much whitespace in site.jsl script

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Any

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

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
dion gillard added a comment - 17/Oct/03 12:56 AM

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

Show
dion gillard added a comment - 17/Oct/03 12:56 AM Applied in xdoc 1.5-SNAPSHOT. Not too much of a gain though

People

  • Assignee:
    Unassigned
    Reporter:
    Paul Strack
Vote (0)
Watch (0)

Dates

  • Created:
    16/Oct/03 9:32 AM
    Updated:
    01/Dec/03 9:32 AM
    Resolved:
    17/Oct/03 12:56 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.