summaryrefslogtreecommitdiff
path: root/tex/context/base/lxml-tab.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-18 13:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-18 13:15:04 +0200
commit53ff76b73cd1f373ecdfb0f7f17df6f352621d6e (patch)
treeba75e57f8ab12bf8edfb429bd6455e9dfca9512c /tex/context/base/lxml-tab.lua
parentb55577d0998160c0174e250b542016ecd6ca9056 (diff)
downloadcontext-53ff76b73cd1f373ecdfb0f7f17df6f352621d6e.tar.gz
2015-05-18 12:28:00
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r--tex/context/base/lxml-tab.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua
index 47e2cac61..510ba1bd4 100644
--- a/tex/context/base/lxml-tab.lua
+++ b/tex/context/base/lxml-tab.lua
@@ -264,8 +264,17 @@ end
-- end
-- end
+local spaceonly = lpegpatterns.whitespace^0 * P(-1)
+
local function add_text(text)
local n = #dt
+--
+-- will be an option: dataonly
+--
+-- if #text == 0 or lpegmatch(spaceonly,text) then
+-- return
+-- end
+--
if cleanup and #text > 0 then
if n > 0 then
local s = dt[n]