mallardwriter: Fix whitespace
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 Aug 2012 08:39:23 +0000 (05:39 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 Aug 2012 08:39:23 +0000 (05:39 -0300)
The whitespace should come included with the surrounding 'other'
tokens. We shouldn't need to add any.

giscanner/mallardwriter.py

index 86df45d..133f921 100644 (file)
@@ -245,7 +245,7 @@ class MallardFormatter(object):
         tokens = self._scanner.scan(para)
         words = [(tok, self._process_token(tok)) for tok in tokens]
         words = [w[1] for w in words]
-        return ' '.join(words)
+        return ''.join(words)
 
     def format_function_name(self, func):
         raise NotImplementedError