VirtualBox

Changeset 76081 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Dec 9, 2018 6:55:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127322
Message:

manual/docbook2latex.xsl: fix reundant \texttt for replaceable bits of an option, and be more clever with newlines inside monospace formatted elements (in the past we cheated by avoiding newlines within <command>, which doesn't really work)

File:
1 edited

Legend:

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

    r76078 r76081  
    893893  <xsl:template match="replaceable">
    894894    <xsl:choose>
    895       <xsl:when test="not(ancestor::cmdsynopsis) or ancestor::arg">
     895      <xsl:when test="(not(ancestor::cmdsynopsis) and not(ancestor::option)) or ancestor::arg">
    896896        <xsl:text>\texttt{\textit{</xsl:text>
    897897        <xsl:apply-templates />
     
    936936        <xsl:variable name="subst2">
    937937          <xsl:call-template name="str:subst">
    938             <xsl:with-param name="text" select="$subst1" />
     938            <xsl:with-param name="text" select="translate(normalize-space(concat('&#x7F;',$subst1,'&#x7F;')),'&#x7F;','')" />
    939939            <xsl:with-param name="replace" select="'--'" />
    940940            <xsl:with-param name="with" select="'-{}-'" />
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