Quote annotation in serialization to prevent splitting by lexer

Closes #183
This commit is contained in:
Thomas Lauf 2018-10-15 16:02:05 +02:00
parent 481a445a86
commit 72acde371e
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@
- #167 Cannot shorten interval to zero length - #167 Cannot shorten interval to zero length
(thanks to janikrabe) (thanks to janikrabe)
- #174 Interval is split in two when it encloses month border - #174 Interval is split in two when it encloses month border
- #183 Hyphen in annotation gets padded with spaces
- Fixed error from totals.py while timer is active - Fixed error from totals.py while timer is active
(thanks to davisdude) (thanks to davisdude)
- Refactoring of Interval and Range - Refactoring of Interval and Range

View file

@ -89,7 +89,7 @@ std::string Interval::serialize () const
if (! annotation.empty ()) if (! annotation.empty ())
{ {
out << (_tags.empty () ? " #" : "") out << (_tags.empty () ? " #" : "")
<< " # " << annotation; << " # \"" << annotation << "\"";
} }
return out.str (); return out.str ();