]> git.llucax.com Git - software/blitiri.git/commitdiff
Strip article's haders values
authorLeandro Lucarella <luca@llucax.com.ar>
Wed, 6 Aug 2008 20:28:35 +0000 (17:28 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Fri, 8 Aug 2008 22:53:20 +0000 (19:53 -0300)
blitiri.cgi

index 26b95d499c4fc384fbb1fd08c865fb3874ed3a4e..75e1a0c8ec7cdef7fe84d39e755fdbacf40247e0 100755 (executable)
@@ -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]