VirtualBox

Changeset 99118 in vbox for trunk/doc


Ignore:
Timestamp:
Mar 22, 2023 3:45:33 PM (2 years ago)
Author:
vboxsync
Message:

manual: Revised r156481 a bit, since nested args are used in different ways, so must require role=compact for complicated arguments.

Location:
trunk/doc/manual
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook-refentry-to-C-help.xsl

    r99116 r99118  
    269269        <xsl:when test="parent::group and ancestor::*[@role='compact']"><xsl:value-of select="$arg.or.sep.compact"/></xsl:when>
    270270        <xsl:when test="parent::group"><xsl:value-of select="$arg.or.sep"/></xsl:when>
    271         <xsl:when test="parent::arg"></xsl:when>
     271        <xsl:when test="ancestor::*[@role='compact']"></xsl:when>
    272272        <xsl:when test="ancestor::*/@sepchar"><xsl:value-of select="ancestor::*/@sepchar"/></xsl:when>
    273273        <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
     
    304304        <xsl:when test="@choice = 'req'">               <xsl:value-of select="$arg.choice.req.close.str"/></xsl:when>
    305305      </xsl:choose>
     306      <!-- Add a space padding if we're the last element in a repeating arg or group -->
     307      <!-- 2023-03-22 bird: This is incorrectly written. Fix as needed...
     308      <xsl:if test="(parent::arg or parent::group) and not(following-sibiling) and not(ancestor::*[@role='compact'])">
     309        <xsl:text> </xsl:text>
     310      </xsl:if>
     311      -->
    306312    </xsl:if>
    307313  </xsl:template>
  • trunk/doc/manual/docbook2latex.xsl

    r99116 r99118  
    971971        <xsl:when test="parent::group and ancestor::*[@role='compact']"><xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.or.sep.compact.tex"/><xsl:text>}</xsl:text></xsl:when>
    972972        <xsl:when test="parent::group"><xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.or.sep.tex"/><xsl:text>}</xsl:text></xsl:when>
    973         <xsl:when test="parent::arg"></xsl:when>
     973        <xsl:when test="ancestor::*[@role='compact']"></xsl:when>
    974974        <xsl:when test="ancestor::*/@sepchar"><xsl:value-of select="ancestor::*/@sepchar"/></xsl:when>
    975975        <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
     
    10071007      <xsl:when test="@choice = 'req'">               <xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.choice.req.close.str"/><xsl:text>}</xsl:text></xsl:when>
    10081008    </xsl:choose>
     1009
     1010    <!-- add space padding if we're the last element in a nested arg -->
     1011    <!-- 2023-03-22 bird: This is incorrectly written. Fix as needed...
     1012    <xsl:if test="(parent::arg or parent::group) and not(following-sibling) and not(ancestor::*[@role='compact'])">
     1013      <xsl:text> </xsl:text>
     1014    </xsl:if> -->
    10091015  </xsl:template>
    10101016
  • trunk/doc/manual/en_US/man_VBoxManage-controlvm.xml

    r99116 r99118  
    422422      <arg choice="req"><replaceable>yres</replaceable></arg>
    423423      <arg choice="req"><replaceable>bpp</replaceable></arg>
    424       <arg><arg><replaceable>display</replaceable></arg><group>
    425           <arg choice="plain">enabled:yes | no</arg>
    426           <arg><replaceable>x-origin</replaceable>&nbsp;<replaceable>y-origin</replaceable></arg>
    427         </group></arg>
     424      <arg>
     425        <replaceable>display</replaceable>
     426        <arg>
     427          <group choice="req">
     428            <arg choice="plain">yes</arg>
     429            <arg choice="plain">no</arg>
     430          </group>
     431          <arg>
     432            <arg choice="plain"><replaceable>x-origin</replaceable></arg>
     433            <arg choice="plain"><replaceable>y-origin</replaceable></arg>
     434          </arg>
     435        </arg>
     436      </arg>
    428437    </cmdsynopsis>
    429438
Note: See TracChangeset for help on using the changeset viewer.

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