From e62c096126d94299c6049c66982c5704142e4888 Mon Sep 17 00:00:00 2001 From: Luka Dragar Date: Wed, 1 Apr 2026 12:54:09 +0200 Subject: [PATCH] Small bug fix regarding UD features conversion to string --- conversion_utils/jos_msds_and_properties.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conversion_utils/jos_msds_and_properties.py b/conversion_utils/jos_msds_and_properties.py index 8ec8c13..604dd06 100644 --- a/conversion_utils/jos_msds_and_properties.py +++ b/conversion_utils/jos_msds_and_properties.py @@ -247,7 +247,11 @@ class UD: return self._features_string() def to_full_string(self): - return "UposTag=" + self.pos + "|" + self._features_string() + features = self._features_string() + if features: + return "UposTag=" + self.pos + "|" + features + else: + return "UposTag=" + self.pos def _features_string(self): return "|".join([f"{feature}={value}" for feature, value in self._sort_features(self.features_map)])