From 42aef1747315d063dea46a357cb8c591a0df1b68 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Tue, 19 May 2020 18:54:52 +0200 Subject: [PATCH] component lexeme now does not strip spaces, also not shown with spaces. --- res/main.less | 4 ---- src/model/example/component_lexeme.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/res/main.less b/res/main.less index 240abfc..2348a38 100644 --- a/res/main.less +++ b/res/main.less @@ -223,10 +223,6 @@ } } - .comp-text { - margin-left: 0.5ch; // half width of '0' - } - .comp-role { color: @darkpink; } diff --git a/src/model/example/component_lexeme.py b/src/model/example/component_lexeme.py index de91e19..d166f7c 100644 --- a/src/model/example/component_lexeme.py +++ b/src/model/example/component_lexeme.py @@ -17,8 +17,6 @@ class ComponentLexeme(Data): for oth_attr in ["lexical_unit_lexeme_id", "slolex", "kol"]: if xml.hasAttribute(oth_attr): self.other_attributes[oth_attr] = xml.getAttribute(oth_attr) - - self.text = self.text.strip() def isValid(self): return len(self.text) > 0