Add line endings after sections in write_problemlist.py.
authorW. Trevor King <wking@drexel.edu>
Fri, 27 May 2011 21:43:32 +0000 (17:43 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 27 May 2011 21:43:32 +0000 (17:43 -0400)
latex/test/write_problemlist.py

index c6a34b0996f77c357548c92940322a7ac03bf8fe..2e3ef27b9cfff61f11564aa11fc499731ca8eda1 100755 (executable)
@@ -22,7 +22,7 @@ def write_problemlist(problem_dir=None, blacklist=()):
         source_dir = os.path.join(problem_dir, source)
         if not os.path.isdir(source_dir):
             continue
-        f.write('\section{%s}' % source.replace('_', ' '))
+        f.write('\\section{%s}\n' % source.replace('_', ' '))
         for problem in sorted(os.listdir(source_dir)):
             path = os.path.join(source_dir, problem)
             if os.path.isfile(path):