summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/buff-ver.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-06-04 19:46:50 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-06-04 19:46:50 +0200
commite9ccab5308d2b6fec79e36c355c03aad4e1e5dec (patch)
tree42a003cdebc84d23b9cc424ba47f11515b196385 /tex/context/base/mkxl/buff-ver.lmt
parente2ffa186c8e622ce9235533b91bb2399dd051672 (diff)
downloadcontext-e9ccab5308d2b6fec79e36c355c03aad4e1e5dec.tar.gz
2023-06-04 16:40:00HEADbeta
Diffstat (limited to 'tex/context/base/mkxl/buff-ver.lmt')
-rw-r--r--tex/context/base/mkxl/buff-ver.lmt17
1 files changed, 12 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/buff-ver.lmt b/tex/context/base/mkxl/buff-ver.lmt
index 25d92618e..aebea63fd 100644
--- a/tex/context/base/mkxl/buff-ver.lmt
+++ b/tex/context/base/mkxl/buff-ver.lmt
@@ -733,13 +733,17 @@ end
local tablength = 7
local function dotabs(content,settings)
- local tab = settings.tab
- tab = tab and (tab == v_yes and tablength or tonumber(tab))
- if tab then
- return tabtospace(content,tab)
+ local par = settings.par
+ if par == v_yes then
+ return utilities.strings.striplines(content,"collapse all")
else
- return content
+ local tab = settings.tab
+ tab = tab and (tab == v_yes and tablength or tonumber(tab))
+ if tab then
+ return tabtospace(content,tab)
+ end
end
+ return content
end
local function filter(lines,settings) -- todo: inline or display in settings
@@ -857,6 +861,7 @@ implement {
{ "data" },
-- { "data", "detokened" },
{ "tab" },
+ { "par" },
{ "method" },
{ "compact" },
{ "nature" },
@@ -917,6 +922,7 @@ implement {
{ "name" },
{ "strip" },
{ "tab" },
+ { "par" },
{ "method" },
{ "nature" },
}
@@ -933,6 +939,7 @@ implement {
{ "range" },
{ "regime" },
{ "tab" },
+ { "par" },
{ "method" },
{ "escape" },
{ "nature" },