mercurial/hgweb/webutil.py
changeset 12691 1b1a9038a71a
parent 10282 08a0f04b56bd
child 13596 270f57d35525
--- a/mercurial/hgweb/webutil.py	Sun Oct 10 10:07:17 2010 -0500
+++ b/mercurial/hgweb/webutil.py	Sun Oct 10 10:42:44 2010 -0500
@@ -7,7 +7,7 @@
 # GNU General Public License version 2 or any later version.
 
 import os, copy
-from mercurial import match, patch, util, error
+from mercurial import match, patch, util, error, ui
 from mercurial.node import hex, nullid
 
 def up(p):
@@ -219,3 +219,8 @@
         for key, value in self.vars.iteritems():
             yield {'name': key, 'value': str(value), 'separator': separator}
             separator = '&'
+
+class wsgiui(ui.ui):
+    # default termwidth breaks under mod_wsgi
+    def termwidth(self):
+        return 80