[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread denis.maier
t Any ideas? Best, Denis Von: Hans van der Meer via ntg-context Gesendet: Freitag, 21. Juli 2023 16:26 An: NTG ConTeXt Cc: Hans van der Meer Betreff: [NTG-context] Re: Replacing %20 with spaces in xml attributes Here in Terminal on my Mac: 21 ~: lua Lua 5.4.6 Copyright (C) 1994-2023 Lua.o

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans van der Meer via ntg-context
Here in Terminal on my Mac: 21 ~: lua Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio > string.gsub('a%20b', '%%20', ' ') a b 1 > (string.gsub('a%20b', '%%20', ' ')) a b > ^D 21 ~: The first call returns the 1 giving the match, the extra ()'s get rid of that second return value. yours