aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-05-07 15:34:29 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-05-07 15:34:29 +0200
commit6ef04a783a099997d4f46d8e26b49bfc2f8292da (patch)
tree7624e2ff78a827406b16af17ed5b7c650c8d9fea
parent3c7f90b3b3ba2bfb9fd7dc0ccd67f6a0584c00b4 (diff)
downloadekdosis-6ef04a783a099997d4f46d8e26b49bfc2f8292da.tar.gz
process line breaks (\>) in verse
-rw-r--r--ekdosis.dtx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 138b0a8..dc5d439 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -681,7 +681,7 @@ local aftercmd = lpeg.Cs(lpeg.S("*[{,.?;:'`\"") + dblbkslash)
681local cmdargs = lpeg.Cs(spce^-1 * bsqbracketsii * bcbracesii * bsqbrackets^-1) 681local cmdargs = lpeg.Cs(spce^-1 * bsqbracketsii * bcbracesii * bsqbrackets^-1)
682local lemrdg = lpeg.Cs(lpeg.Cs("lem") + lpeg.Cs("rdg")) 682local lemrdg = lpeg.Cs(lpeg.Cs("lem") + lpeg.Cs("rdg"))
683local lnbrk = lpeg.Cs("\\\\") 683local lnbrk = lpeg.Cs("\\\\")
684local poemline = lpeg.Cs(lnbrk * lpeg.S(">")^-1 * bsqbrackets^-1) 684local poemline = lpeg.Cs(lnbrk * bsqbrackets^-1)
685local endpoem = lpeg.Cs(lnbrk * lpeg.S("*!") * bsqbrackets^-1) 685local endpoem = lpeg.Cs(lnbrk * lpeg.S("*!") * bsqbrackets^-1)
686 686
687-- Booleans 687-- Booleans
@@ -962,6 +962,7 @@ end
962local function linestotei(str) 962local function linestotei(str)
963 str = "\n<l>"..str 963 str = "\n<l>"..str
964 str = gsub(str, endpoem, "</l>\n") 964 str = gsub(str, endpoem, "</l>\n")
965 str = gsub(str, poemline * lpeg.P("&gt;"), "\n<lb/>")
965 str = gsub(str, poemline, "</l>\n<l>") 966 str = gsub(str, poemline, "</l>\n<l>")
966 return str 967 return str
967end 968end