Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Trimming of trailing whitespace of paragraphs
  • Loading branch information
msmid committed Nov 26, 2014
1 parent 78a2209 commit 81617d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/md2doc-functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@
<xsl:otherwise>
<xsl:choose>
<xsl:when test="matches(.,'\n$')">
<xsl:sequence select="md2doc:run-inline(replace(.,'^ +',''), $refs)"/>
<xsl:sequence select="md2doc:run-inline(replace(replace(.,'[ \n]+$',''),'^ +',''), $refs)"/>
</xsl:when>
<xsl:otherwise>
<p><xsl:sequence select="md2doc:run-inline(replace(.,'^ +',''), $refs)"/></p>
<p><xsl:sequence select="md2doc:run-inline(replace(replace(.,' +$',''),'^ +',''), $refs)"/></p>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
Expand Down

0 comments on commit 81617d1

Please sign in to comment.