]> git.lyx.org Git - features.git/commitdiff
Introduce new format as a safety measure
authorPavel Sanda <sanda@lyx.org>
Wed, 6 May 2009 16:58:15 +0000 (16:58 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 6 May 2009 16:58:15 +0000 (16:58 +0000)
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

development/FORMAT
lib/lyx2lyx/lyx_2_0.py
src/Buffer.cpp

index 31947cc1fa48857fdccb2495570c8e62ce7d5f0b..988245498ad0e94729485872718d715fdaf2545e 100644 (file)
@@ -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
index 153bcac7a8b601da23c3a2c8bffab032f241d3ec..e021c2c662d5001860cfc6756d5e8d168ec84b98 100644 (file)
@@ -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]],
index ac6383127e2fba38eb0f163dd5099d56adf6e9a6..f42b0e1f74f23742afeec4d642ea42547722d144 100644 (file)
@@ -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;