mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
revert_nomencl: escape " and \ for command inset
This commit is contained in:
parent
9835022c59
commit
54eff37ac0
@ -611,9 +611,15 @@ def revert_nomencl(document):
|
||||
if prefix:
|
||||
newins += ["prefix \"" + lyx2latex(document, prefix) + "\""]
|
||||
if symbol:
|
||||
newins += ["symbol \"" + lyx2latex(document, symbol) + "\""]
|
||||
if literal == "true":
|
||||
newins += ["symbol \"" + lyx2latex(document, symbol).replace("\\", "\\\\").replace("\"", "\\\"") + "\""]
|
||||
else:
|
||||
newins += ["symbol \"" + lyx2latex(document, symbol).replace("\"", "\\\"") + "\""]
|
||||
if description:
|
||||
newins += ["description \"" + lyx2latex(document, description) + "\""]
|
||||
if literal == "true":
|
||||
newins += ["description \"" + lyx2latex(document, description).replace("\\", "\\\\").replace("\"", "\\\"") + "\""]
|
||||
else:
|
||||
newins += ["description \"" + lyx2latex(document, description).replace("\"", "\\\"") + "\""]
|
||||
newins += ["literal \"" + literal + "\""]
|
||||
|
||||
j = find_end_of_inset(document.body, i)
|
||||
|
Loading…
Reference in New Issue
Block a user