Show More
@@ -89,10 +89,10 b" def as_html(table_class='code-difftable'" | |||||
89 | 'table_class': table_class |
|
89 | 'table_class': table_class | |
90 | }) |
|
90 | }) | |
91 |
|
91 | |||
92 |
for |
|
92 | for file_info in parsed_lines: | |
93 |
for |
|
93 | for chunk in file_info['chunks']: | |
94 | _html_empty = False |
|
94 | _html_empty = False | |
95 |
for change in |
|
95 | for change in chunk: | |
96 | _html.append('''<tr class="%(lc)s %(action)s">\n''' % { |
|
96 | _html.append('''<tr class="%(lc)s %(action)s">\n''' % { | |
97 | 'lc': line_class, |
|
97 | 'lc': line_class, | |
98 | 'action': change['action'] |
|
98 | 'action': change['action'] | |
@@ -100,12 +100,12 b" def as_html(table_class='code-difftable'" | |||||
100 | anchor_old_id = '' |
|
100 | anchor_old_id = '' | |
101 | anchor_new_id = '' |
|
101 | anchor_new_id = '' | |
102 | anchor_old = "%(filename)s_o%(oldline_no)s" % { |
|
102 | anchor_old = "%(filename)s_o%(oldline_no)s" % { | |
103 |
'filename': _safe_id( |
|
103 | 'filename': _safe_id(file_info['filename']), | |
104 | 'oldline_no': change['old_lineno'] |
|
104 | 'oldline_no': change['old_lineno'] | |
105 | } |
|
105 | } | |
106 |
anchor_new = "%(filename)s_n%( |
|
106 | anchor_new = "%(filename)s_n%(newline_no)s" % { | |
107 |
'filename': _safe_id( |
|
107 | 'filename': _safe_id(file_info['filename']), | |
108 |
' |
|
108 | 'newline_no': change['new_lineno'] | |
109 | } |
|
109 | } | |
110 | cond_old = (change['old_lineno'] != '...' and |
|
110 | cond_old = (change['old_lineno'] != '...' and | |
111 | change['old_lineno']) |
|
111 | change['old_lineno']) |
General Comments 0
You need to be logged in to leave comments.
Login now