aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rpki/left_right.py2
-rw-r--r--scripts/rpki/sax_utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/left_right.py b/scripts/rpki/left_right.py
index 7c1c50c5..5e183a6e 100644
--- a/scripts/rpki/left_right.py
+++ b/scripts/rpki/left_right.py
@@ -33,7 +33,7 @@ class extension_preference_elt(base_elt):
self.name = attrs["name"]
def endElement(self, stack, name, text):
- self.value = text.strip()
+ self.value = text
stack.pop()
def __str__(self):
diff --git a/scripts/rpki/sax_utils.py b/scripts/rpki/sax_utils.py
index 0b7117d2..d645cc4f 100644
--- a/scripts/rpki/sax_utils.py
+++ b/scripts/rpki/sax_utils.py
@@ -31,6 +31,6 @@ class handler(xml.sax.handler.ContentHandler):
self.stack[-1].startElement(self.stack, name, a)
def endElement(self, name):
- text = self.text.encode("ascii")
+ text = self.text.encode("ascii").strip()
self.text = ""
self.stack[-1].endElement(self.stack, name, text)