diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-07-14 16:09:36 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-07-14 16:09:36 +0300 |
commit | 4097896542f2279700794104c7c0728beed38cd0 (patch) | |
tree | 664012755efc30126a0ccef42245ce3068f06adc /wiki2texi.py | |
parent | 28072898f1bd9a925d73ac187d560198d6345524 (diff) | |
download | wit-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 'wiki2texi.py')
-rw-r--r-- | wiki2texi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiki2texi.py b/wiki2texi.py index 0b3eb77..e9009ec 100644 --- a/wiki2texi.py +++ b/wiki2texi.py @@ -186,7 +186,7 @@ class TexiWikiMarkup (WikiMarkup): return "\n-----\n" # FIXME def str_ind(self, elt): - return ("@w{ }" * elt['level']) + self.format(elt['content']) + return ("@w{ }" * elt['level']) + self.format(elt['content']) + '\n' def str_env(self, elt): if elt['envtype'] == 'unnumbered': |