mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Minor improvements to prettyref routines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36082 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dd0a135588
commit
e97c5ba9da
@ -1537,8 +1537,8 @@ def convert_prettyref(document):
|
||||
document.warning("Malformed LyX document: No end of InsetRef!")
|
||||
i += 1
|
||||
continue
|
||||
k = find_token(document.body, "LatexCommand prettyref", i)
|
||||
if k != -1 and k < j:
|
||||
k = find_token(document.body, "LatexCommand prettyref", i, j)
|
||||
if k != -1:
|
||||
document.body[k] = "LatexCommand formatted"
|
||||
i = j + 1
|
||||
document.header.insert(-1, "\\use_refstyle 0")
|
||||
@ -1559,8 +1559,8 @@ def revert_refstyle(document):
|
||||
document.warning("Malformed LyX document: No end of InsetRef")
|
||||
i += 1
|
||||
continue
|
||||
k = find_token(document.body, "LatexCommand formatted", i)
|
||||
if k != -1 and k < j:
|
||||
k = find_token(document.body, "LatexCommand formatted", i, j)
|
||||
if k != -1:
|
||||
document.body[k] = "LatexCommand prettyref"
|
||||
i = j + 1
|
||||
i = find_token(document.header, "\\use_refstyle", 0)
|
||||
|
Loading…
Reference in New Issue
Block a user