Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
Unescape < in comments, and don't remove newlines from them
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcs committed Jun 28, 2012
1 parent 3442410 commit 8db4ad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/markdown-module.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version="2.0">

<xsl:function name="doc:escape" as="xs:string">
<xsl:param name="string"/>
<xsl:sequence select="replace($string,'\*','\\*')"/>
<xsl:sequence select="replace(replace($string,'\*','\\*'),'&amp;lt;','&lt;')"/>
</xsl:function>

<!-- generate module html //-->
Expand Down Expand Up @@ -191,7 +191,7 @@ $</xsl:text><xsl:value-of select="doc:name"/><xsl:text> as </xsl:text><xsl:value
<xsl:text>

```xquery
</xsl:text><xsl:value-of select="."/><xsl:text>
</xsl:text><xsl:value-of select="doc:escape(.)"/><xsl:text>
```
</xsl:text>
</xsl:template>
Expand Down
2 changes: 1 addition & 1 deletion src/xquery/xquerydoc.xq
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare (: private :) function _commentContents($e)
{
typeswitch($e)
case element(Char) return $e/node()
case element(Trim) return text { " " }
case element(Trim) return text { "&#xa;" }
case element(ElementContentChar) return $e/node()
case element(QuotAttrContentChar) return $e/node()
case element(AposAttrContentChar) return $e/node()
Expand Down

0 comments on commit 8db4ad7

Please sign in to comment.