]> 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>
Tue, 31 Mar 2026 02:07:48 +0000 (22:07 -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 734b3c03fdc1726a0cf0bb8618f3f1eda4e29eef314bcb91c8bde5dd7b10ef52..2ba0fd184c3235939da218cd373240880fb9737f75a1dabafe56cbe4f9a6081d 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.111274 seconds and 4 git commands to generate.