# HG changeset patch # User Marcin Kuzminski # Date 1282592357 -7200 # Node ID cbfb853a0a4cdec28ca3edb1e4343175e780e210 # Parent a6000c18a8db513ae6b5e3758fe2ce2f9f1f7368 fixed bug when author had " in name, thus breaking the javascript data format small fix to css for commit messages, and fixed a bug when message had some special chars that caused unicodeDecode error diff -r a6000c18a8db -r cbfb853a0a4c pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py Sat Aug 21 18:33:13 2010 +0200 +++ b/pylons_app/controllers/summary.py Mon Aug 23 21:39:17 2010 +0200 @@ -84,6 +84,7 @@ def author_key_cleaner(k): k = person(k) + k = k.replace('"', "'") #for js data compatibilty return k for cs in repo: diff -r a6000c18a8db -r cbfb853a0a4c pylons_app/public/css/style.css --- a/pylons_app/public/css/style.css Sat Aug 21 18:33:13 2010 +0200 +++ b/pylons_app/public/css/style.css Mon Aug 23 21:39:17 2010 +0200 @@ -1039,8 +1039,8 @@ #content div.box div.message { - margin: 0 0 10px 0; - padding: 0; + margin: 0 0 0px 0; + padding: 0 0 10px 0; clear: both; overflow: hidden; } diff -r a6000c18a8db -r cbfb853a0a4c pylons_app/templates/changelog/changelog.html --- a/pylons_app/templates/changelog/changelog.html Sat Aug 21 18:33:13 2010 +0200 +++ b/pylons_app/templates/changelog/changelog.html Mon Aug 23 21:39:17 2010 +0200 @@ -1,3 +1,5 @@ +## -*- coding: utf-8 -*- + <%inherit file="/base/base.html"/> <%def name="title()"> @@ -59,7 +61,7 @@ ${h.email_or_none(cs.author)}
- ${h.link_to(h.wrap_paragraphs(cs.message), + ${h.link_to(h.wrap_paragraphs(cs.message.decode('utf-8','replace')), h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
@@ -76,7 +78,7 @@ %endif %for p_cs in reversed(cs.parents):
${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id, - h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} + h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message.decode('utf-8','replace'))}
%endfor