Le 04/07/2012 23:52, Uwe Stöhr a écrit :
Am 03.07.2012 21:01, schrieb Uwe Stöhr:
Ah, I tried to output as char and that failed. I'll try now with
string and propose a patch.
Attached is the patch for bug
http://www.lyx.org/trac/ticket/8230
I tested it with all sorts of verbatim that I could imagine and also
with single '\' as \verb argument.
One thing that chould be done is to change getArg and friends to accept
strings as delimiter. I am not sure it would be so difficult. Then, when
a token is several characters (as in utf8 case), there will be no need
for painful tricks as in your patch.
Seriously, I am not sure that using utf8 delimiters is a common enough
need in real world to warrant ugly code. Did you want to implement this
for the sake of completeness or was it from a real-world request?
I would vote for putting this on hold until getArg is upgraded.
Actually, anything the relies on 'char' variables should
JMarc