]> Lady’s Gitweb - LesML/commitdiff
Fix note divs 0.5.1
authorLady <redacted>
Wed, 17 Sep 2025 02:55:22 +0000 (22:55 -0400)
committerLady <redacted>
Wed, 17 Sep 2025 02:55:22 +0000 (22:55 -0400)
The parser used to erroneously discard all divs, including semantic
ones (i·e those with a `@role`). Also, it used to require a variation
selector after `⚠`, which didn¦t actually work with the implementation
and should not have been required.

parser.xslt

index 5ba22481500091cd93f14a5879c8bac631869336..01889ded6a738c5b548883d72e69444ea8ccfe8f 100644 (file)
@@ -658,7 +658,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                </element>
                                                        </element>
                                                </when>
-                                               <when test="starts-with($text, '⚠') and &sigiled-text;">
+                                               <when test="starts-with($text, '⚠') and &sigiled-text;">
                                                        <element name="div" namespace="&xhtml;">
                                                                <attribute name="role">
                                                                        <text>note</text>
@@ -802,6 +802,14 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </for-each>
                                        </element>
                                </when>
+                               <when test="not(processing-instruction()[local-name()='LesML-Continuation'])">
+                                       <copy>
+                                               <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
+                                               <for-each select="exslset:leading(following-sibling::node(), $notcontinuation)">
+                                                       <apply-templates select="node()" mode="LesML:finalize-tree"/>
+                                               </for-each>
+                                       </copy>
+                               </when>
                                <otherwise>
                                        <apply-templates select="node()" mode="LesML:finalize-tree"/>
                                        <for-each select="exslset:leading(following-sibling::node(), $notcontinuation)">
This page took 0.04059 seconds and 4 git commands to generate.