mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-27 12:16:25 +02:00
Quote annotation in serialization to prevent splitting by lexer
Closes #183
This commit is contained in:
parent
481a445a86
commit
72acde371e
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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 ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue