Skip to content

Commit

Permalink
GMP doc: print single string pattern in command-structure
Browse files Browse the repository at this point in the history
This prevents empty command structure boxes.

It only affects three cases, the elements c, e and r (6.1, 6.2 and
6.3).  These three elements are described with the pattern 'text' for
simplicity.
  • Loading branch information
mattmundell authored and bjoernricks committed Jun 4, 2024
1 parent a642fb2 commit ee242c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schema_formats/HTML/HTML.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<xsl:when test="(count(pattern/*) = 0) and (string-length(normalize-space(pattern)) = 0)">
<i>Empty single element.</i>
</xsl:when>
<xsl:when test="(count(pattern/*) = 0)">
<xsl:value-of select="pattern"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="command" select="."/>
<xsl:for-each select="pattern/*">
Expand Down

0 comments on commit ee242c9

Please sign in to comment.