From: Lady Date: Sat, 8 Aug 2026 04:43:47 +0000 (-0400) Subject: Allow colons in header record terms X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain Allow colons in header record terms This commit changes the Record鈥怞ar processing to allow colons in terms, since colons in values can be provided by using a continuation line. This change allows for the use of I路R路I娄s as terms, which can be beneficial for some kinds of metadata. Message-type: text/lesml --- diff --git "a/TESTING/\360\237\223\244/keys-and-values" "b/TESTING/\360\237\223\244/keys-and-values" index 7c34284..76bed6d 100644 --- "a/TESTING/\360\237\223\244/keys-and-values" +++ "b/TESTING/\360\237\223\244/keys-and-values" @@ -1,2 +1,2 @@ -
Key
Value
Key value
multiline
keyand value
bad spaced
key
+
Key
Value
multiline
keyand value
bad spaced
key
urn:fdc:example.com:0000:key_with_colon
a value
a key
a:value:with:a:colon
diff --git "a/TESTING/\360\237\223\245/bad-key" "b/TESTING/\360\237\223\245/bad-key" new file mode 100644 index 0000000..d67d91a --- /dev/null +++ "b/TESTING/\360\237\223\245/bad-key" @@ -0,0 +1,6 @@ +#?lesml@en$ profile=about:test +## document comment +## this is allowed following the opening shebang +%% +Key Value +%% diff --git "a/TESTING/\360\237\223\245/keys-and-values" "b/TESTING/\360\237\223\245/keys-and-values" index 62187d2..b4217a5 100644 --- "a/TESTING/\360\237\223\245/keys-and-values" +++ "b/TESTING/\360\237\223\245/keys-and-values" @@ -5,11 +5,13 @@ Key : Value %%comm %%ent -Key value -%% multiline: key and \ value %% bad spaced : key %% +urn:fdc:example.com:0000:key_with_colon: a value +a key: + a:value:with:a:colon +%% diff --git a/xslt/lesml.xslt b/xslt/lesml.xslt index 61539dd..dc9485d 100644 --- a/xslt/lesml.xslt +++ b/xslt/lesml.xslt @@ -1,6 +1,6 @@ @@ -917,22 +917,29 @@ This template operates by outputting the result of the first document + + + + + : + + + + + + + + + + Invalid field: Missing colon. + + - + - - - - - - - - - -