]> Lady’s Gitweb - LesML/commitdiff
Better handle i·d‐less pilcrows 0.3.0
authorLady <redacted>
Sat, 19 Oct 2024 22:57:17 +0000 (18:57 -0400)
committerLady <redacted>
Tue, 31 Mar 2026 02:01:54 +0000 (22:01 -0400)
A pilcrow is useful to “force” a paragraph when it would otherwise
  start with a sigil.
These pilcrows may not have i·d¦s; this should be supported.

parser.xslt

index 5d34ce04dfc0d98af7868307b245657df337b4a031f23bc97edd1b6bb9d3db7e..845c3ba8455ad5a4a710258f79e1b04d2523202b9f150f854f88fb8e237547d0 100644 (file)
@@ -105,9 +105,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        <when test="starts-with($source, '¶')">
                                <choose>
                                        <when test="contains($source, ' ')">
-                                               <attribute name="id">
-                                                       <value-of select="substring-before(substring-after($source, '¶'), ' ')"/>
-                                               </attribute>
+                                               <variable name="id" select="substring-before(substring-after($source, '¶'), ' ')"/>
+                                               <if test="$id!=''">
+                                                       <attribute name="id">
+                                                               <value-of select="$id"/>
+                                                       </attribute>
+                                               </if>
                                                <value-of select="substring-after($source, ' ')"/>
                                        </when>
                                        <otherwise>
This page took 0.213933 seconds and 4 git commands to generate.