From 4097896542f2279700794104c7c0728beed38cd0 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 14 Jul 2015 16:09:36 +0300 Subject: 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
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. --- testdata/colon.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testdata/colon.html') diff --git a/testdata/colon.html b/testdata/colon.html index b9e35ed..2fb6ed3 100644 --- a/testdata/colon.html +++ b/testdata/colon.html @@ -1,4 +1,4 @@ -
A colon (:) indents a line or paragraph.

A newline starts a new paragraph. +

A colon (:) indents a line or paragraph.

A newline starts a new paragraph. Should only be used on talk pages. -For articles, you probably want the blockquote tag.

We use 1 colon to indent once.
We use 2 colons to indent twice.
3 colons to indent 3 times, and so on.
+For articles, you probably want the blockquote tag.

We use 1 colon to indent once.
We use 2 colons to indent twice.
3 colons to indent 3 times, and so on.
-- cgit v1.2.1