[LyX/master] fix get_quoted_value

Jürgen Spitzmüller jspitzm at gmail.com
Thu Aug 15 11:07:01 UTC 2024


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


More information about the lyx-devel mailing list