aboutsummaryrefslogtreecommitdiff
path: root/ekdosis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r--ekdosis.dtx16
1 files changed, 8 insertions, 8 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 6e0bf42..b3f6d33 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -1744,18 +1744,18 @@ local function envtotei(str)
1744 then 1744 then
1745 if isfound(close_p, envtotags[i].b) 1745 if isfound(close_p, envtotags[i].b)
1746 then 1746 then
1747 if envtotags[i].b == "p" 1747 -- if envtotags[i].b == "p"
1748 then 1748 -- then
1749 str = gsub(str, (lpeg.P("\\par") + lpeg.P("<p>")) * spcenc^-1 * lpeg.P("\\begin") * spcenc^-1 * lpeg.P("{") 1749 str = gsub(str, (lpeg.P("\\par") + lpeg.P("<p>")) * spcenc^-1 * lpeg.P("\\begin") * spcenc^-1 * lpeg.P("{")
1750 * lpeg.Cs(envtotags[i].a) * lpeg.P("}") 1750 * lpeg.Cs(envtotags[i].a) * lpeg.P("}")
1751 * bcbracesii * spcenc^-1, 1751 * bcbracesii * spcenc^-1,
1752 "\n<"..envtotags[i].b..envtotags[i].c..">") 1752 "\n<"..envtotags[i].b..envtotags[i].c..">")
1753 else 1753 -- else
1754 str = gsub(str, (lpeg.P("\\par") + lpeg.P("<p>")) * spcenc^-1 * lpeg.P("\\begin") * spcenc^-1 * lpeg.P("{") 1754 -- str = gsub(str, (lpeg.P("\\par") + lpeg.P("<p>")) * spcenc^-1 * lpeg.P("\\begin") * spcenc^-1 * lpeg.P("{")
1755 * lpeg.Cs(envtotags[i].a) * lpeg.P("}") 1755 -- * lpeg.Cs(envtotags[i].a) * lpeg.P("}")
1756 * bcbracesii * spcenc^-1, 1756 -- * bcbracesii * spcenc^-1,
1757 "</p>\n<"..envtotags[i].b..envtotags[i].c..">") 1757 -- "</p>\n<"..envtotags[i].b..envtotags[i].c..">")
1758 end 1758 -- end
1759 str = gsub(str, spcenc^-1 * lpeg.P("\\end") * spcenc^-1 * lpeg.P("{") 1759 str = gsub(str, spcenc^-1 * lpeg.P("\\end") * spcenc^-1 * lpeg.P("{")
1760 * lpeg.Cs(envtotags[i].a) * lpeg.P("}") * spcenc^-1 * (lpeg.P("\\par") + lpeg.P("</p>")), 1760 * lpeg.Cs(envtotags[i].a) * lpeg.P("}") * spcenc^-1 * (lpeg.P("\\par") + lpeg.P("</p>")),
1761 "</"..envtotags[i].b..">\n<p>") 1761 "</"..envtotags[i].b..">\n<p>")