proycon / vocage

A minimalistic spaced-repetion vocabulary trainer (flashcards) for the terminal
GNU General Public License v3.0
142 stars 10 forks source link

Comment lines deleted after saving #3

Closed gnodar01 closed 3 years ago

gnodar01 commented 3 years ago

Lines beginning with # for comments seem to all be stripped after either saving with w and/or after clearing the cards for the day.

I'm using iTerm2 + zsh on MacOs.

proycon commented 3 years ago

oh! that indeed shouldn't happen. Are the comments in any special part of the file or does it affect all? I think I can see why this happens for leading comments (prior to any non-comments).

gnodar01 commented 3 years ago

It seems that it indeed happens when there is a comment on the leading non-header line (so the second line in my case). Just to be clear, comments on all lines, as well as empty lines, are removed when there is a comment in the leading line. But when there is no comment in the leading line, all comment lines and empty lines are preserved.

proycon commented 3 years ago

This should be solved now in v1.0.1

gnodar01 commented 3 years ago

Works like a charm. Thank you!