ensure last line in diff block is contained within a table row element

This commit is contained in:
Mike Greiling 2017-01-18 13:55:46 -06:00
parent e2f0b83061
commit bc0a82334a
2 changed files with 4 additions and 2 deletions

View File

@ -38,4 +38,5 @@
- if discussion_left || discussion_right
= render "discussions/parallel_diff_discussion", discussion_left: discussion_left, discussion_right: discussion_right
- if !diff_file.new_file && last_line > 0
= diff_match_line last_line, last_line, bottom: true, view: :parallel
%tr.line_holder.parallel
= diff_match_line last_line, last_line, bottom: true, view: :parallel

View File

@ -13,4 +13,5 @@
- last_line = diff_file.highlighted_diff_lines.last.new_pos
- if !diff_file.new_file && last_line > 0
= diff_match_line last_line, last_line, bottom: true
%tr.line_holder
= diff_match_line last_line, last_line, bottom: true