]> git.lyx.org Git - features.git/commitdiff
bug 1018 fix part 2
authorJohn Levon <levon@movementarian.org>
Sun, 1 Jun 2003 00:01:50 +0000 (00:01 +0000)
committerJohn Levon <levon@movementarian.org>
Sun, 1 Jun 2003 00:01:50 +0000 (00:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7074 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/lyxconvert_221.py

index 2d4bb3ee922ffb3a5b78a81187b688ad6ea9d75f..c137a47a1ee955ba91fba76f06c31d3f1a6455af 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-01  John Levon  <levon@movementarian.org>
+
+       * lyx2lyx/lyxconvert_221.py: "\BibTeX" to "\bibtex" (bug 1018)
+       (from José Matos)
+
 2003-05-31  Angus Leeming  <leeming@lyx.org>
 
        * configure.m4 (latex_to_html_command): add a bunch of formats and
index 02d9e17f64acb5d0aabbac863e5a878e89bfaf7b..14ade384ac295963c226ede5f0fc53d2d3014d63 100644 (file)
@@ -24,9 +24,15 @@ def convert_spaces(lines):
     for i in range(len(lines)):
         lines[i] = string.replace(lines[i],"\\SpecialChar ~","\\InsetSpace ~")
 
+def convert_bibtex(lines):
+    for i in range(len(lines)):
+        lines[i] = string.replace(lines[i],"\\begin_inset LatexCommand \\BibTeX",
+                                  "\\begin_inset LatexCommand \\bibtex")
+
 def convert(header, body):
     add_end(header)
     convert_spaces(body)
+    convert_bibtex(body)
 
 if __name__ == "__main__":
     pass