add flush_softspace() interface
diff --git a/Lib/formatter.py b/Lib/formatter.py
index 67d2b16..9ff03b5 100644
--- a/Lib/formatter.py
+++ b/Lib/formatter.py
@@ -109,6 +109,11 @@
 	self.nospace = self.softspace = 0
 	self.writer.send_literal_data(data)
 
+    def flush_softspace(self):
+	if self.softspace:
+	    self.nospace = self.softspace = 0
+	    self.writer.send_flowing_data(' ')
+
     def push_font(self, (size, i, b, tt)):
 	if self.font_stack:
 	    csize, ci, cb, ctt = self.font_stack[-1]