mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Introduce new format as a safety measure
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150868.html http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150895.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29552 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
36a811cba2
commit
0920fd7b5e
@ -1,6 +1,11 @@
|
||||
LyX file-format changes
|
||||
-----------------------
|
||||
|
||||
2009-05-05 Pavel Sanda, Enrico Forestieri
|
||||
* Format incremented to 357: Change of the latex output for underline
|
||||
from \underbar to ulem's \uline. This point also corresponds to
|
||||
the introduction of \lyxuline etc. macros to avoid clash with \cite.
|
||||
|
||||
2009-05-05 Pavel Sanda <sanda@lyx.org>
|
||||
* Format incremented to 356: support for double and wave underline character
|
||||
styles via ulem's \uuline and \uwave
|
||||
|
@ -618,7 +618,7 @@ def revert_strikeout(document):
|
||||
|
||||
|
||||
def revert_uulinewave(document):
|
||||
" Reverts \\uline, \\uuline, and \\uwave character styles "
|
||||
" Reverts \\uuline, and \\uwave character styles "
|
||||
while True:
|
||||
i = find_token(document.body, '\\uuline', 0)
|
||||
if i == -1:
|
||||
@ -627,8 +627,11 @@ def revert_uulinewave(document):
|
||||
while True:
|
||||
i = find_token(document.body, '\\uwave', 0)
|
||||
if i == -1:
|
||||
break
|
||||
return
|
||||
del document.body[i]
|
||||
|
||||
def revert_ulinelatex(document):
|
||||
" Reverts \\uline character style "
|
||||
i = find_token(document.body, '\\bar under', 0)
|
||||
if i == -1:
|
||||
return
|
||||
@ -657,10 +660,12 @@ convert = [[346, []],
|
||||
[353, []],
|
||||
[354, []],
|
||||
[355, []],
|
||||
[356, []]
|
||||
[356, []],
|
||||
[357, []]
|
||||
]
|
||||
|
||||
revert = [[355, [revert_uulinewave]],
|
||||
revert = [[356, [revert_ulinelatex]],
|
||||
[355, [revert_uulinewave]],
|
||||
[354, [revert_strikeout]],
|
||||
[353, [revert_printindexall]],
|
||||
[352, [revert_subindex]],
|
||||
|
@ -125,7 +125,7 @@ namespace {
|
||||
|
||||
// Do not remove the comment below, so we get merge conflict in
|
||||
// independent branches. Instead add your own.
|
||||
int const LYX_FORMAT = 356; // sanda: support for \\uuline
|
||||
int const LYX_FORMAT = 357; // sanda: change latex output for various underline commands
|
||||
|
||||
typedef map<string, bool> DepClean;
|
||||
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
|
||||
|
Loading…
Reference in New Issue
Block a user