From 72acde371ea2689455c34abce0946904816f231b Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Mon, 15 Oct 2018 16:02:05 +0200 Subject: [PATCH] Quote annotation in serialization to prevent splitting by lexer Closes #183 --- ChangeLog | 1 + src/Interval.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b04c8300..a1fddf7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,7 @@ - #167 Cannot shorten interval to zero length (thanks to janikrabe) - #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 (thanks to davisdude) - Refactoring of Interval and Range diff --git a/src/Interval.cpp b/src/Interval.cpp index 011b4c6d..e44045cc 100644 --- a/src/Interval.cpp +++ b/src/Interval.cpp @@ -89,7 +89,7 @@ std::string Interval::serialize () const if (! annotation.empty ()) { out << (_tags.empty () ? " #" : "") - << " # " << annotation; + << " # \"" << annotation << "\""; } return out.str ();