patch from Wouter Bolsterlee -- https://bugs.launchpad.net/ubuntu/+source/rubber/+bug/122489/comments/1
--- src/rules/latex/__init__.py.old  2007-03-12 00:01:34.000000000 +0100
+++ src/rules/latex/__init__.py      2007-03-12 00:00:52.000000000 +0100
@@ -1107,7 +1107,8 @@
 		
 		file = self.source()
 		cmd = [self.vars["program"]]
-		cmd += map(lambda x: x.replace("%s",file), self.cmdline)
+		quoted_file = '"%s"' % file
+		cmd += map(lambda x: x.replace("%s", quoted_file), self.cmdline)
 		inputs = string.join(self.env.path, ":")
 		if inputs == "":
 			env = {}
