Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(158)

Unified Diff: codereview/engine.py

Issue 124106: rietveld: correct tab handling (Closed) Base URL: http://rietveld.googlecode.com/svn/trunk/
Patch Set: rebase patch set 2 on r476 Created 15 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | codereview/intra_region_diff.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: codereview/engine.py
===================================================================
--- codereview/engine.py (revision 476)
+++ codereview/engine.py (working copy)
@@ -499,10 +499,10 @@
new_buff.append([new_valid, new_lineno, new_intra_diff])
else:
# We render line by line as usual if do_ir_diff is false
- old_intra_diff = intra_region_diff.Fold(
- old_intra_diff, colwidth + indent, indent, indent)
- new_intra_diff = intra_region_diff.Fold(
- new_intra_diff, colwidth + indent, indent, indent)
+ old_intra_diff = intra_region_diff.Break(
+ old_intra_diff, 0, colwidth, "\n" + " "*indent)
+ new_intra_diff = intra_region_diff.Break(
+ new_intra_diff, 0, colwidth, "\n" + " "*indent)
old_buff_out = [[old_valid, old_lineno,
(old_intra_diff, True, None)]]
new_buff_out = [[new_valid, new_lineno,
« no previous file with comments | « no previous file | codereview/intra_region_diff.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b