[redistricter] r201 committed - fix urljoin leading slash bug. html p maxwidth

0 views
Skip to first unread message

redist...@googlecode.com

unread,
Feb 27, 2011, 12:25:16 PM2/27/11
to redistrict...@googlegroups.com
Revision: 201
Author: brian.olson
Date: Sun Feb 27 09:24:40 2011
Log: fix urljoin leading slash bug. html p maxwidth
http://code.google.com/p/redistricter/source/detail?r=201

Modified:
/trunk/analyze_submissions.py
/trunk/report.css

=======================================
--- /trunk/analyze_submissions.py Sun Feb 27 08:18:29 2011
+++ /trunk/analyze_submissions.py Sun Feb 27 09:24:40 2011
@@ -106,10 +106,14 @@
def urljoin(*args):
parts = []
prevSlash = False
+ first = True
for x in args:
if not x:
continue
- if prevSlash:
+ if first:
+ # don't change leading slash quality
+ first = False
+ elif prevSlash:
if x[0] == '/':
x = x[1:]
else:
=======================================
--- /trunk/report.css Sun Feb 27 08:18:29 2011
+++ /trunk/report.css Sun Feb 27 09:24:40 2011
@@ -10,3 +10,4 @@
td.myon{max-width:30em;text-align:center;}
div.small{font-size:70%;}
#custom-tweet-button a {padding: 2px 5px 2px 20px;background:
url('http://a4.twimg.com/images/favicon.ico') 1px center
no-repeat;text-decoration:none;}
+p{max-width:100ex;}

Reply all
Reply to author
Forward
0 new messages