final label is skipped, if not followed by a delimiter
I formatted a label file, with delimiter '----'. All was ok, except that the last label was missing. I added a final line '----', and then it was produced. Reading the code, I can see that in delimiter mode, printing is triggered by the delimiter line. However, the documentation says that the delimiter "separates" labels, not that it is like a required semi-colon in C.
Possible fixes:
- Change the documentation, and warn if there is leftover text. Valid but doesn't seem nice.
- On EOF, if there is accumulated text, print a label. I hope this is easy, but I want to let the concept sit in my head a bit before trying to write code.