hgweb: fix regexp for other styles like monoblue
Some styles have indentation.
--- a/mercurial/templates/static/mercurial.js Sat Nov 16 15:46:29 2013 -0500
+++ b/mercurial/templates/static/mercurial.js Wed Jan 08 00:26:55 2014 +0900
@@ -394,7 +394,7 @@
},
function onsuccess(htmlText) {
if (mode == 'graph') {
- var addHeight = htmlText.match(/^<canvas id="graph".*height="(\d+)"><\/canvas>$/m)[1];
+ var addHeight = htmlText.match(/^\s*<canvas id="graph".*height="(\d+)"><\/canvas>$/m)[1];
addHeight = parseInt(addHeight);
graph.canvas.height = addHeight;