Commit 83589e31 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

parser: Task: Trim metadata

Fix #47
parent 81fea597
Pipeline #3478 passed with stages
in 10 minutes and 48 seconds
......@@ -36,6 +36,7 @@
#include "Media.h"
#include "parser/Task.h"
#include "utils/Filename.h"
#include "utils/Strings.h"
#include "utils/Url.h"
#include <algorithm>
......@@ -216,6 +217,7 @@ std::string Task::Item::meta( Task::Item::Metadata type ) const
void Task::Item::setMeta( Task::Item::Metadata type, std::string value )
{
utils::str::trim( value );
m_metadata[type] = std::move( value );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment