ubermichael / isetools

Tools for parsing data for the Internet Shakespeare Editions
GNU General Public License v2.0
2 stars 3 forks source link

attributes with whitespace parsed incorrectly #1

Closed telic closed 9 years ago

telic commented 9 years ago

Attributes with whitespace between the = and the opening " are not being parsed correctly. It looks like the element and attribute are built fine, but the attribute value ends up containing the opening quote.

This might affect whitespace on the other side of the = as well, I haven't checked.

ubermichael commented 9 years ago

Can you provide an example or test case?

telic commented 9 years ago

I noticed it in https://revision.hcmc.uvic.ca/svn/ise-developers/trunk/sgml/input/withTitlePage/Ham/Ham_EM.txt@9072, near TLN 2743.23

ubermichael commented 9 years ago

Probably this tag:

<L n="31" part= "f"/>  

The grammar should understand spaces around attributes and the equal sign, but I had some difficulty getting it to actually work.

Thanks Max.