aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexicon_filter.in
diff options
context:
space:
mode:
authorGravatar Mark Griffiths <mark@thebespokepixel.com>2014-08-16 10:18:41 +0100
committerGravatar Mark Griffiths <mark@thebespokepixel.com>2014-09-03 14:43:26 +0100
commitcf7a6a6a65f02a6c28a5d197a2c593b23f67824f (patch)
tree13698cca21d77dcea5f9cd117b75323788287e4d /lexicon_filter.in
parent509d152e5407856ce00833b931ef29c3d98c3573 (diff)
Fix ampersand redirector
Diffstat (limited to 'lexicon_filter.in')
-rw-r--r--lexicon_filter.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexicon_filter.in b/lexicon_filter.in
index 7e49651e..7970fe98 100644
--- a/lexicon_filter.in
+++ b/lexicon_filter.in
@@ -422,9 +422,10 @@ x
# A special case. Tidy up after commands.
# Redirectors
s/\([^{|] *\)|/\1@redr{|}/g
+s/&$/@redr{\&amp;}/
s/\([^{&] *\)&[^a-z]/\1@redr{\&amp;}/g
s/\([^{<>^] *\)\([0-9]* *[<>^][<>^]*[^@][a-zA-Z0-9._-]*\)/\1@redr{\2}/g
-s/\\}/}\\/g
+#s/\\}/}\\/g
#.
# Now we can add in 'unsafe' entities that would be too greedy.
# Declared Variables