mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
TI-2: Two line tags causes false entry in database
- Thanks to Sebastian Uharek.
This commit is contained in:
parent
9f6baee790
commit
e910506073
3 changed files with 10 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -21,3 +21,4 @@ suggestions:
|
|||
Bruno Vernay
|
||||
Ben Boeckel
|
||||
Wade Duvall
|
||||
Sebastian Uharek
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
(thanks to Ben Boeckel).
|
||||
- TD-115 Throw error when config file is missing or not readable
|
||||
(thanks to Jelle van der Waa).
|
||||
- TI-2 Two line tags causes false entry in database
|
||||
(thanks to Sebastian Uharek).
|
||||
- Added 'continue' command.
|
||||
- Added 'diagnostics' command.
|
||||
- Added 'export' command.
|
||||
|
|
|
@ -133,7 +133,13 @@ void CLI::entity (const std::string& category, const std::string& name)
|
|||
// Capture a single argument.
|
||||
void CLI::add (const std::string& argument)
|
||||
{
|
||||
A2 arg (Lexer::trim (argument), Lexer::Type::word);
|
||||
// Sanitize the input: Convert control charts to spaces. Then trim.
|
||||
auto clean = argument;
|
||||
for (auto& c : clean)
|
||||
if (c <= 32)
|
||||
c = ' ';
|
||||
|
||||
A2 arg (Lexer::trim (clean), Lexer::Type::word);
|
||||
arg.tag ("ORIGINAL");
|
||||
_original_args.push_back (arg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue