VirtualBox

Changeset 68878 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Sep 26, 2017 4:36:55 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118140
Message:

docbook2latex.xsl: Made each <term> sibilings (when there are > 1) show up on its own line. This was previously hacked with separating them by comma and keeping them on the same line, however this led to an attack on the right margin if there were too many/long terms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook2latex.xsl

    r68860 r68878  
    585585      <xsl:message terminate="yes">Expected at least one term and one listitem element in the varlistentry.</xsl:message>
    586586    </xsl:if>
    587     <!-- TODO: Ideally, I'd like to have each term on a new line. didn't find a simple way of doing that... -->
    588     <xsl:text>&#x0a;&#x0a;\item[</xsl:text>
     587    <xsl:text>&#x0a;&#x0a;\item[{\parbox[t]{\linewidth}{\raggedright </xsl:text>
    589588    <xsl:apply-templates select="./term[1]"/>
    590589    <xsl:for-each select="./term[position() > 1]">
    591       <xsl:text>,&#x0a; </xsl:text>
     590      <xsl:text>\\&#x0a; </xsl:text>
    592591      <xsl:apply-templates select="."/>
    593592    </xsl:for-each>
    594     <xsl:text>] \hfill \\&#x0a;</xsl:text>
     593    <xsl:text>}}] \hfill \\&#x0a;</xsl:text>
    595594    <xsl:apply-templates select="listitem/*"/>
    596595  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette