commit 06956a4297dabba1b96bbdcd137f8857d45d6fd7 Author: Novatux Date: Fri Jun 13 20:24:55 2014 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/convert.py b/convert.py new file mode 100644 index 0000000..e5b0680 --- /dev/null +++ b/convert.py @@ -0,0 +1,70 @@ +import sys + +def flatten(l): + u = [] + for j in l: + for i in j: + u.append(i) + return u + +def closing_tag(tag): + u = tag.split("<")[1:] + u.reverse() + return "= 2 and par[1] == "=" * len(par[0]): + return "

" + par[0] + "

" + l = [("

", [])] + for line in par: + if line[:2] == "- ": + l.append(("