Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
57
Issues
57
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
medialibrary
Commits
83589e31
Commit
83589e31
authored
Dec 11, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parser: Task: Trim metadata
Fix
#47
parent
81fea597
Pipeline
#3478
passed with stages
in 10 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/parser/Task.cpp
src/parser/Task.cpp
+2
-0
No files found.
src/parser/Task.cpp
View file @
83589e31
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment