aboutsummaryrefslogtreecommitdiff
path: root/wiki2html.py
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-07-14 16:09:36 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2015-07-14 16:09:36 +0300
commit4097896542f2279700794104c7c0728beed38cd0 (patch)
tree664012755efc30126a0ccef42245ce3068f06adc /wiki2html.py
parent28072898f1bd9a925d73ac187d560198d6345524 (diff)
downloadwit-4097896542f2279700794104c7c0728beed38cd0.tar.gz
wit-4097896542f2279700794104c7c0728beed38cd0.tar.bz2
Fix processing of environments (numbered/unnumbered lists, definition lists) and indented strings.
* wikimarkup.py (tokread): Always add 'continuation' key to DELIM entries. Delete whitespace following environment delimiters. (peektkn): Take an optional offset argument. (parse0): Handle indentations. * wiki2html.py (str_ind): Use <dl> to produce indentations. * wiki2texi.py (str_ind): End text with a newline. * testdata/colon.html: Update. * testdata/deflist.html: Update. * testdata/numlist.html: Update. * testdata/unlist.html: Update.
Diffstat (limited to 'wiki2html.py')
-rw-r--r--wiki2html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiki2html.py b/wiki2html.py
index 66939c4..f3ea0e3 100644
--- a/wiki2html.py
+++ b/wiki2html.py
@@ -203,7 +203,7 @@ class HtmlWikiMarkup (WikiMarkup):
return '<pre>' + string + '</pre>'
def str_ind(self, elt):
- return ("&nbsp;" * 2 * elt['level']) + self.format(elt['content'])
+ return ("<dl><dd>" * elt['level']) + self.format(elt['content']) + "</dd></dl>" * elt['level']
def format(self, elt):
if elt['type'] == 'TEXT':

Return to:

Send suggestions and report system problems to the System administrator.