projectmallard / mallard-ducktype

Parser for the lightweight Ducktype syntax for Mallard
MIT License
10 stars 4 forks source link

Parser should remove trailing spaces #10

Open j1mc opened 9 years ago

j1mc commented 9 years ago

Trailing spaces at the end of lines in .duck files can sometimes affect the XML that is produced by the parser, and trailing spaces should be removed.

For example, a simple .duck file like this:
= Index [style=task] @desc A short description of this page @revision[date=2015-05-05 status=draft]

This is a simple page.

with a trailing space in "Index " will result in a trailing space at the end of "Index " in the staged XML.