Commit 4e16054
committed
prevent <newline tag mangling
remove charref and entityref handlers; change where newline inserted
after start tag.
A test under python2 ended up with a newline between the opening '<'
and the tag. This was caused by a string that had escaped > and
<.
embedded code block <pre>\n\n<pre> python\nline 1\nline 2\n</pre>
The code was mapping < etc back to < and > and confusing the parser
as to where the tag really started. It inserpreted the real pre tag as
data and inserted a newline.1 parent 25de331 commit 4e16054
1 file changed
+3
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 91 | | |
107 | 92 | | |
108 | 93 | | |
| |||
0 commit comments