diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-05-18 13:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-05-18 13:15:04 +0200 |
commit | 53ff76b73cd1f373ecdfb0f7f17df6f352621d6e (patch) | |
tree | ba75e57f8ab12bf8edfb429bd6455e9dfca9512c /tex/context/base/lxml-tab.lua | |
parent | b55577d0998160c0174e250b542016ecd6ca9056 (diff) | |
download | context-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.lua | 9 |
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] |