summaryrefslogtreecommitdiff
path: root/creole
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-01-18 23:27:03 +0100
committerJensDiemer <git@jensdiemer.de>2020-01-18 23:27:03 +0100
commit11e4df55d7673301d7034230451f55d89435c98f (patch)
tree0b501b150784d9c64826e311c7459b6dc80abfda /creole
parent51295d3a7251d29b6701d9c43fae83e8082614a9 (diff)
downloadcreole-11e4df55d7673301d7034230451f55d89435c98f.tar.gz
Bugfix List parsing with Python >= 3.7
Diffstat (limited to 'creole')
-rw-r--r--creole/parser/creol2html_rules.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/creole/parser/creol2html_rules.py b/creole/parser/creol2html_rules.py
index 12c13db..a96b3f2 100644
--- a/creole/parser/creol2html_rules.py
+++ b/creole/parser/creol2html_rules.py
@@ -144,10 +144,10 @@ class BlockRules(object):
^}}})
'''
- # Matches the whole list, separate items are parsed later. The
- # list *must* start with a single bullet.
+ # Matches the whole list, separate items are parsed later.
+ # The list *must* start with a single bullet.
list = r'''(?P<list>
- ^ [ \t]* ([*][^*\#]|[\#][^\#*]).* $
+ ^ \s* ([*][^*\#]|[\#][^\#*]).* $
( \n[ \t]* [*\#]+.* $ )*
)'''