Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unescape < in comments, and don't remove newlines from them

  • Loading branch information...
commit 8db4ad70e1af7ca4d20cb2369033bd3a9633cd87 1 parent 3442410
@jpcs jpcs authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/lib/markdown-module.xsl
  2. +1 −1  src/xquery/xquerydoc.xq
View
4 src/lib/markdown-module.xsl
@@ -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 //-->
@@ -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>
View
2  src/xquery/xquerydoc.xq
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.