newsdev / archieml-js

JavaScript parser for the Archie Markup Language (ArchieML)
http://archieml.org
Other
206 stars 19 forks source link

Freeforms shouldn't require trailing newlines to pick up last line of text #21

Closed abstrctn closed 8 years ago

abstrctn commented 8 years ago
[+freeform]
Text

Should produce {"freeform": [{"type": "text", "value": "Text"}]}, but at the moment that happens only if the input document contains a trailing newline.

It appears this is because the last line of the file is currently parsed only if it contains a special character; normal text lines at the end of files are ignored.