[Lemon-commits] Alpar Juttner: No dots after the section numbers

Lemon HG hg at lemon.cs.elte.hu
Sat Nov 1 09:26:08 CET 2008


details:   http://lemon.cs.elte.hu/hg/lemon-tutorial/rev/7cc2418766c3
changeset: 15:7cc2418766c3
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Sat Nov 01 08:25:30 2008 +0000
description:
	No dots after the section numbers

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
titlegen.py |    4 +++-

diffs (21 lines):

diff -r 35279d53a015 -r 7cc2418766c3 titlegen.py
--- a/titlegen.py	Sat Nov 01 08:15:59 2008 +0000
+++ b/titlegen.py	Sat Nov 01 08:25:30 2008 +0000
@@ -16,6 +16,7 @@
     s=""
     for i in sec:
         s+=str(i)+'.'
+    s=s[:-1]
     return s
 
 section = [];
@@ -71,7 +72,8 @@
                 secs = [ x for x in toc]
                 secs.sort()
                 for num in secs:
-                    fo.write("%s - \\ref %s\n"%(' '*(len(num)-2),toc[num]))
+                    fo.write("%s - \\ref %s\n"%('  '*((len(ind[toc[num]][0]))),
+                                                toc[num]))
             else:
                 fo.write(gr[4]+'\n')
         fo.close()



More information about the Lemon-commits mailing list