Skip to content

Commit a206fec

Browse files
committed
simplify commenting
1 parent ae70a89 commit a206fec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/resources/ruleml2tptp.xslt

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
<xsl:if test="matches(., $match-comments, $matching-flags) = $keep-comments">
2424
<xsl:variable name="step-1"
2525
select="replace(., '(^[ \t]+)|([ \t]+$)', '', 'm')"/>
26-
<xsl:variable name="step-2"
27-
select="replace($step-1, '^-- ', '% ', 'm')"/>
28-
<xsl:variable name="step-3"
29-
select="replace($step-2, '^(-+)$', '%$1', 'm')"/>
3026
<xsl:variable name="final"
31-
select="replace($step-3, '^([^%\r\n].*)$', '% $1', 'm')"/>
27+
select="replace($step-1, '^([^%\r\n].*)$', '% $1', 'm')"/>
3228
<xsl:value-of select="$final"/>
3329
<xsl:if test="not(matches($final, '\n$'))">
3430
<xsl:value-of select="$nl"/>

0 commit comments

Comments
 (0)