#127 Menu.txt gets corrupted

open
nobody
None
5
2012-09-14
2011-09-10
John Addis
No

When an error is found in Menu.txt the generated file is missing line ends.

To reproduce:
1) Edit menu.txt
2) Insert an invalid line, something like this:

Title: My Title
SubTitle: My subtitle
This is not a good thing to do.
# You can add a footer...

3) Run NaturalDocs.
4) Edit Menu.txt again. It will look something like this:

---begin excerpt---

There is an error in this file. Search for ERROR to find it.

Format: 1.52Title: My TitleSubTitle: My subtitle.# ERROR: is not a valid keyword.
This is not a good thing to do.# You can add a footer...
---end excerpt---

I've been able to reproduce this with both Cygwin and ActiveState Perl, using both vi and Notepad to edit Menu.txt.

Discussion