mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
Don't write a comma if not needed. This is only a cosmetical change with
respect to r38709, so no status.20x entry is necessary. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38711 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b2ea8a7db7
commit
17e4135613
@ -149,7 +149,7 @@ def color_pdf(latex_file, bg_color, fg_color):
|
||||
|
||||
|
||||
def fix_latex_file(latex_file):
|
||||
documentclass_re = re.compile("(\\\\documentclass\[)(1[012]pt)(.)(.+)")
|
||||
documentclass_re = re.compile("(\\\\documentclass\[)(1[012]pt,?)(.+)")
|
||||
|
||||
tmp = mkstemp()
|
||||
|
||||
@ -161,7 +161,7 @@ def fix_latex_file(latex_file):
|
||||
continue
|
||||
|
||||
changed = 1
|
||||
tmp.write("%s%s%s\n" % (match.group(1), match.group(3), match.group(4)))
|
||||
tmp.write("%s%s%s\n" % (match.group(1), match.group(3)))
|
||||
|
||||
if changed:
|
||||
copyfileobj(tmp, open(latex_file,"wb"), 1)
|
||||
|
@ -168,7 +168,7 @@ def color_pdf(latex_file, bg_color, fg_color):
|
||||
|
||||
|
||||
def fix_latex_file(latex_file):
|
||||
documentclass_re = re.compile("(\\\\documentclass\[)(1[012]pt)(.)(.+)")
|
||||
documentclass_re = re.compile("(\\\\documentclass\[)(1[012]pt,?)(.+)")
|
||||
|
||||
tmp = mkstemp()
|
||||
|
||||
@ -180,7 +180,7 @@ def fix_latex_file(latex_file):
|
||||
continue
|
||||
|
||||
changed = 1
|
||||
tmp.write("%s%s%s\n" % (match.group(1), match.group(3), match.group(4)))
|
||||
tmp.write("%s%s\n" % (match.group(1), match.group(3)))
|
||||
|
||||
if changed:
|
||||
copyfileobj(tmp, open(latex_file,"wb"), 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user