mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 09:55:57 +00:00
HTML reader: Allow space between <col> and </col>.
Test case:
```
<table border="1">
<colgroup>
<col> </col>
<col></col>
</colgroup>
<tbody>
<tr>
<td>X</td>
<td>Y</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>
```
This commit is contained in:
@@ -262,6 +262,7 @@ pTable = try $ do
|
||||
pCol :: TagParser Double
|
||||
pCol = try $ do
|
||||
TagOpen _ attribs <- pSatisfy (~== TagOpen "col" [])
|
||||
skipMany pBlank
|
||||
optional $ pSatisfy (~== TagClose "col")
|
||||
skipMany pBlank
|
||||
return $ case lookup "width" attribs of
|
||||
|
||||
Reference in New Issue
Block a user