Commit abe7353e authored by Momme Butenschoen's avatar Momme Butenschoen

Fxed some brackets in section commands.

parent eb9aa7f8
...@@ -498,9 +498,9 @@ class PyProTex: ...@@ -498,9 +498,9 @@ class PyProTex:
name=self.name_is.replace("_","\_")# Replace "_" with "\_" name=self.name_is.replace("_","\_")# Replace "_" with "\_"
if self.opt["n"] and not self.first: self.Str+="\n\\newpage\n" if self.opt["n"] and not self.first: self.Str+="\n\\newpage\n"
if self.opt["f"]: if self.opt["f"]:
self.Str+="\n\\section{{{} }\n\n".format(name) self.Str+="\n\\section{{{} }}\n\n".format(name)
else: else:
self.Str+="\n\section{{{} (Source: {})}\n\n".format(name, self.FileBaseName) self.Str+="\n\section{{{} (Source: {})}}\n\n".format(name, self.FileBaseName)
self.have_name = 1 self.have_name = 1
self.first = 0 self.first = 0
return return
......
...@@ -498,9 +498,9 @@ class PyProTex: ...@@ -498,9 +498,9 @@ class PyProTex:
name=self.name_is.replace("_","\_")# Replace "_" with "\_" name=self.name_is.replace("_","\_")# Replace "_" with "\_"
if self.opt["n"] and not self.first: self.Str+="\n\\newpage\n" if self.opt["n"] and not self.first: self.Str+="\n\\newpage\n"
if self.opt["f"]: if self.opt["f"]:
self.Str+="\n\\section{{{} }\n\n".format(name) self.Str+="\n\\section{{{} }}\n\n".format(name)
else: else:
self.Str+="\n\section{{{} (Source: {})}\n\n".format(name, self.FileBaseName) self.Str+="\n\section{{{} (Source: {})}}\n\n".format(name, self.FileBaseName)
self.have_name = 1 self.have_name = 1
self.first = 0 self.first = 0
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment