summaryrefslogtreecommitdiff
path: root/tex/context/base/xtag-ini.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2005-07-20 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2005-07-20 00:00:00 +0200
commite1e7a447633cde21cb8ef83878a8a2aac841d1ec (patch)
tree3fad67a494cf13189fb0c0ce467307d63feb77aa /tex/context/base/xtag-ini.tex
parentc7f924443bf5e21f5cd9210fc76c633a3a77e20e (diff)
downloadcontext-e1e7a447633cde21cb8ef83878a8a2aac841d1ec.tar.gz
stable 2005.07.20
Diffstat (limited to 'tex/context/base/xtag-ini.tex')
-rw-r--r--tex/context/base/xtag-ini.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/xtag-ini.tex b/tex/context/base/xtag-ini.tex
index 7ba173050..2bf010824 100644
--- a/tex/context/base/xtag-ini.tex
+++ b/tex/context/base/xtag-ini.tex
@@ -2511,7 +2511,11 @@
{{\enableXML\scantokens{#1}\unskip}}
\long\def\XMLstr#1% test, does not work
- {\begingroup\enableXML\scantokens{#1<endgroup/><gobblespacetokens/>}}
+ {\ifprocessingXML
+ \begingroup\enableXML\scantokens{#1<endgroup/><gobblespacetokens/>}%
+ \else
+ \begingroup\enableXML\scantokens{#1<endgroup/>\ignorespaces}%
+ \fi}
\def\XMLgetvariable#1#2% hooks into generic \getvariable and setvariables
{\expanded{\XMLstr{\getvariable{#1}{#2}}}}