Permalink
Browse files

Removed some padding on lists

  • Loading branch information...
cbx33 committed Aug 18, 2011
1 parent afd6f22 commit 0e0bdfe217d0ece3ffcfb9c1fec9e4f2309cef8e
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/htmlbuild.py
View
@@ -129,15 +129,15 @@ def mung(data):
plob = re.findall("(\\\\begin\{itemize\}((.*?)\\\\end\{itemize\}))", data, re.S)
for i in plob:
- data = data.replace(i[0], '<div style="padding:10px;"><ul>' + i[2] + "</ul></div>")
+ data = data.replace(i[0], '<div style="padding-left:10px;"><ul>' + i[2] + "</ul></div>")
listd = i[1]
nasty = re.findall("(\\\\item(.*?)((?=\\\\item)|(?=\\\\end\{itemize\})))", listd, re.S)
for j in nasty:
data = data.replace(j[0], '<li>' + j[1].strip() + '</li>'+"\n")
plob = re.findall("(\\\\begin\{enumerate\}((.*?)\\\\end\{enumerate\}))", data, re.S)
for i in plob:
- data = data.replace(i[0], '<div style="padding:10px;"><ol>' + i[2] + "</ol></div>")
+ data = data.replace(i[0], '<div style="padding-left:10px;"><ol>' + i[2] + "</ol></div>")
listd = i[1]
nasty = re.findall("(\\\\item(.*?)((?=\\\\item)|(?=\\\\end\{enumerate\})))", listd, re.S)
for j in nasty:

0 comments on commit 0e0bdfe

Please sign in to comment.