mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Bug 879 - Description/Annotation ending with Slash Causes Problems
- Backslashes actually. The escaping mechanism in the low-level parser was eating leading \ characters when it should not. Very hard bug to find, trivial to fix. - Added unit tests to several components while narrowing this down.
This commit is contained in:
parent
7a2bf28005
commit
ec96d929a0
10 changed files with 135 additions and 41 deletions
|
@ -492,11 +492,9 @@ unsigned burndown_size (unsigned ntasks)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Encode values prior to serialization.
|
||||
// \t -> &tab;
|
||||
// " -> &dquot;
|
||||
// [ -> &open;
|
||||
// ] -> &close;
|
||||
// \ -> \\ (extra chars to disambiguate multi-line comment)
|
||||
const std::string encode (const std::string& value)
|
||||
{
|
||||
std::string modified = value;
|
||||
|
@ -510,9 +508,8 @@ const std::string encode (const std::string& value)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Decode values after parse.
|
||||
// \t <- &tab;
|
||||
// " <- " or &dquot;
|
||||
// ' <- &squot;
|
||||
// " <- &dquot;
|
||||
// ' <- &squot; or "
|
||||
// , <- ,
|
||||
// [ <- &open;
|
||||
// ] <- &close;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue