git » blitiri » commit f6698d8

Strip article's haders values

author Leandro Lucarella
2008-08-06 20:28:35 UTC
committer Alberto Bertogli
2008-08-08 22:53:20 UTC
parent 654ea14e9278434472497f00f8fa04600fe0e7b9

Strip article's haders values

blitiri.cgi +2 -2

diff --git a/blitiri.cgi b/blitiri.cgi
index 26b95d4..75e1a0c 100755
--- a/blitiri.cgi
+++ b/blitiri.cgi
@@ -339,9 +339,9 @@ class Article (object):
 			if ':' in l:
 				name, value = l.split(':', 1)
 				if name.lower() == 'title':
-					self._title = value
+					self._title = value.strip()
 				elif name.lower() == 'author':
-					self._author = value
+					self._author = value.strip()
 				elif name.lower() == 'tags':
 					ts = value.split(',')
 					ts = [t.strip() for t in ts]