summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/lxml-tab.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-20 22:51:22 +0000
committerKarl Berry <karl@freefriends.org>2015-05-20 22:51:22 +0000
commitf4ca072dc8bbae3f3891556ff24ba3f325029539 (patch)
tree478494b84c4080631768d18a01123749d9e8dd02 /Master/texmf-dist/tex/context/base/lxml-tab.lua
parent2f354a84092cf7b463c61fd6b281405c53d205ab (diff)
context 20may15
git-svn-id: svn://tug.org/texlive/trunk@37464 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/lxml-tab.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/lxml-tab.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/lxml-tab.lua b/Master/texmf-dist/tex/context/base/lxml-tab.lua
index 47e2cac6196..510ba1bd44c 100644
--- a/Master/texmf-dist/tex/context/base/lxml-tab.lua
+++ b/Master/texmf-dist/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]