diff options
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/cpl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/cpl.cc b/src/parse/cpl.cc index f6ce434c..8e62adab 100644 --- a/src/parse/cpl.cc +++ b/src/parse/cpl.cc @@ -56,6 +56,10 @@ CPL::CPL (string file) ContentVersion::ContentVersion (shared_ptr<const cxml::Node> node) { id = node->optional_string_child ("Id").get_value_or (""); + if (!id.empty ()) { + /* Trim urn:uri: */ + id = id.substr (8); + } label_text = node->string_child ("LabelText"); node->done (); } |
