File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def isheader(elem):
72
72
73
73
class AttrListTreeprocessor (Treeprocessor ):
74
74
75
- BASE_RE = r'\{\:?([^\}]*)\}'
75
+ BASE_RE = r'\{\:?([^\}\n ]*)\}'
76
76
HEADER_RE = re .compile (r'[ ]+%s[ ]*$' % BASE_RE )
77
77
BLOCK_RE = re .compile (r'\n[ ]*%s[ ]*$' % BASE_RE )
78
78
INLINE_RE = re .compile (r'^%s' % BASE_RE )
Original file line number Diff line number Diff line change @@ -63,4 +63,6 @@ <h1>Bad attributes</h1>
63
63
< p > Value without < em > key</ em > </ p >
64
64
< p > No < em > key or value</ em > </ p >
65
65
< p > < em > Weirdness</ em > </ p >
66
- < p > < em > More weirdness</ em > </ p >
66
+ < p > < em > More weirdness</ em > </ p >
67
+ < p > Attr_lists do not contain < em > newlines</ em > { foo=bar
68
+ key=value }</ p >
Original file line number Diff line number Diff line change @@ -88,3 +88,5 @@ No *key or value*{ = }
88
88
89
89
*More weirdness*{ === }
90
90
91
+ Attr_lists do not contain *newlines*{ foo=bar
92
+ key=value }
You can’t perform that action at this time.
0 commit comments