Skip to content

Commit

Permalink
docx2mn.xsl updated for lists labels, #144
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 30, 2022
1 parent ecd6ce1 commit 77304ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/docx2mn.adoc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1112,16 +1112,16 @@

<xsl:variable name="listitem_label">
<xsl:choose>
<xsl:when test="(.//*[self::w:t or self::w:delText or self::w:insText])[1] = $em_dash">.</xsl:when> <!-- unordered list (ul) -->
<xsl:otherwise>*</xsl:otherwise> <!-- ordered list (ol) -->
<xsl:when test="(.//*[self::w:t or self::w:delText or self::w:insText])[1] = $em_dash">*</xsl:when> <!-- unordered list (ul) -->
<xsl:otherwise>.</xsl:otherwise> <!-- ordered list (ol) -->
</xsl:choose>
</xsl:variable>

<xsl:if test="normalize-space($text) != ''">
<!-- <xsl:text>DEBUG level=</xsl:text><xsl:value-of select="$level"/><xsl:text>&#xa;</xsl:text> -->

<xsl:call-template name="repeat">
<xsl:with-param name="char" select="'.'"/>
<xsl:with-param name="char" select="$listitem_label"/>
<xsl:with-param name="count" select="$level"/>
</xsl:call-template>
<!-- <xsl:text> </xsl:text> -->
Expand Down

0 comments on commit 77304ab

Please sign in to comment.