[extensions-web] Correct line counts
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Correct line counts
- Date: Sat, 19 Nov 2011 21:28:27 +0000 (UTC)
commit fa3582a2299558c5a12448a18891ea86be1e1fbc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Nov 19 16:28:20 2011 -0500
Correct line counts
After ignoring collapsible chunks, the line counts will be off
sweettooth/review/views.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index dc142bd..5ab8486 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -129,9 +129,9 @@ def get_diff(old_zipfile, new_zipfile, filename, highlight):
old_htmls, new_htmls = get_chunks_html(oldlines, newlines)
return dict(old=dict(html='\n'.join(old_htmls),
- num_lines=len(oldlines)),
+ num_lines=len(split_lines(old_htmls))),
new=dict(html='\n'.join(new_htmls),
- num_lines=len(newlines)))
+ num_lines=len(split_lines(new_htmls))))
@ajax_view
@model_view(models.ExtensionVersion)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]