Docx reader: Fix hdr handling in block norm

`blockNormalize` previously forgot to account for the case in which a
Header's inlines did not start with a space.
This commit is contained in:
Jesse Rosenthal 2014-06-20 09:30:30 -04:00
parent 557b302731
commit 7fd48b30e0

View file

@ -157,6 +157,8 @@ blockNormalize (Para (Space : ils)) = blockNormalize (Para ils)
blockNormalize (Para ils) = Para $ strNormalize ils
blockNormalize (Header n attr (Space : ils)) =
blockNormalize $ Header n attr ils
blockNormalize (Header n attr ils) =
Header n attr $ strNormalize ils
blockNormalize (Table (Space : ils) align width hdr cells) =
blockNormalize $ Table ils align width hdr cells
blockNormalize (Table ils align width hdr cells) =