minor fix

This commit is contained in:
Thibault Deckers 2022-08-31 22:23:15 +02:00
parent 2e6928d33e
commit c2cc81fd1d

View file

@ -77,7 +77,7 @@ class XmpNamespace extends Equatable {
}
}
String get displayTitle => Namespaces.nsTitles[nsUri] ?? '${nsPrefix.substring(0, nsPrefix.length - 1)} ($nsUri)';
String get displayTitle => Namespaces.nsTitles[nsUri] ?? (nsPrefix.isEmpty ? nsUri : '${nsPrefix.substring(0, nsPrefix.length - 1)} ($nsUri)');
Map<String, String> get buildProps => rawProps;