Am Donnerstag, dem 15.08.2024 um 09:35 +0100 schrieb José Matos:
> This will only fail for cases where there are multiple opening and
> closing quotes.
> Is that our case?

My case was escaped quote as last content of the quoted string (e.g.,
"\"" which returned \ rather than \")

> BTW I usually prefer code that is more expressive:
> 
> if val.startswith('"'):
>     val =  val[1:]
> if val.endswith('"'):
>     val =  val[:-1]

OK, will change that.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to