Closed LeopoldArkham closed 6 years ago
I'd like to take this one if you don't mind. I should have a working version soon. But just to be clear, when you refer to a "WS item," that means a line that contains nothing but whitespace, right? Nothing else seems to make sense, given the source code that I've read since discovering this project a few hours ago. (In particular, I thought at first that any whitespace surrounding a newline would count, but that's clearly not right.)
Hey, great to have you!
Yes. I do specifically mean Item::WS
elements should be concatenated into a single one if multiple of them occur consecutively.
Couple things I didn't mention in the OP:
Let me know if you need anything!
Currently the parser ends whitespace whenever a newline is reached. When appending a WS item, check that it does not follow another WS item,and merge them together if it does.
Look for the
todo
inparse_item()
, currently on line 135.