]> git.lyx.org Git - lyx.git/commitdiff
User Guide will not export to 1.6.x. This ID can be negative!
authorRichard Heck <rgheck@comcast.net>
Mon, 25 Apr 2011 01:47:10 +0000 (01:47 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 25 Apr 2011 01:47:10 +0000 (01:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38486 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index f5d72db7e7c813a84f19fec24a146b0a5dd7e584..2854d7bec0f2dbd6a97627742a667f7e83141bee 100644 (file)
@@ -771,7 +771,7 @@ def revert_author_id(document):
     " Remove the author_id from the \\author definition "
     i = 0
     anum = 0
-    rx = re.compile(r'(\\author)\s+(\d+)\s+(\".*\")\s*(.*)$')
+    rx = re.compile(r'(\\author)\s+(-?\d+)\s+(\".*\")\s*(.*)$')
     idmap = dict()
 
     while True: