From 14a4e7b4b9e690adc184f9825c2e56ce5a7e52ba Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 19:15:14 +0530 Subject: [PATCH] trying silly things, probably should not .. --- edgware/editor/templatetags/alter_size.py | 2 +- edgware/editor/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edgware/editor/templatetags/alter_size.py b/edgware/editor/templatetags/alter_size.py index 04dd83a..d975eca 100644 --- a/edgware/editor/templatetags/alter_size.py +++ b/edgware/editor/templatetags/alter_size.py @@ -11,7 +11,7 @@ def make_really_big(value, m): v = str(value).strip() if v[-2:] == 'px': no = int(value.replace("px", "")) * m - return str(int(no)) + "px" + return str(int(round(no))) + "px" else: return value diff --git a/edgware/editor/views.py b/edgware/editor/views.py index fa94bc1..e056407 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -522,7 +522,7 @@ def view_article(request, id): d = article.get_dict(m, p) else: d = article.get_dict(m) - page_width = article.view_size()[0] + page_width = article.view_size()[0] - 1 page_height = article.view_size()[1] return render_to_response("view_article.html", {'pages': d, 'm': m, 'width': addPx(page_width), 'height': addPx(page_height)})