From: Lady <redacted>
Date: Sun, 28 Apr 2024 18:06:18 +0000 (-0400)
Subject: Fix T·S·V parser
X-Git-Tag: 0.7.4~3
X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/aed0d7c083f1983491a044c66ee811ba4b2ea252?ds=sidebyside;hp=9da40b115e830eba2bd4c27e5957a4b387d86d24

Fix T·S·V parser

A pair of mistakes meant that the final body column was dropped, and
would have been unprocessable if it wasn’t.
---

diff --git a/parsers/tsv.xslt b/parsers/tsv.xslt
index 6c68936..9018bea 100644
--- a/parsers/tsv.xslt
+++ b/parsers/tsv.xslt
@@ -51,11 +51,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 						</call-template>
 					</variable>
 					<html:tr>
-						<for-each select="exsl:node-set($cols)/*[count(exsl:node-set($headcols)/*)>position()]">
+						<for-each select="exsl:node-set($cols)/*[count(exsl:node-set($headcols)/*)>=position()]">
 							<html:td>
 								<value-of select="."/>
 								<if test="position()=count(exsl:node-set($headcols)/*)">
-									<for-each select="following-sibling:*">
+									<for-each select="following-sibling::*">
 										<text>&#x9;</text>
 										<value-of select="."/>
 									</for-each>