fixed ... in diff file first line
This commit is contained in:
parent
8db72a2844
commit
2cd5aa694d
1 changed files with 6 additions and 4 deletions
|
@ -8,12 +8,14 @@
|
||||||
- next if line.match(/^--- a/)
|
- next if line.match(/^--- a/)
|
||||||
- next if line.match(/^\+\+\+ b/)
|
- next if line.match(/^\+\+\+ b/)
|
||||||
- if line.match(/^@@ -/)
|
- if line.match(/^@@ -/)
|
||||||
- line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0
|
- unless line_old.zero? && line_new.zero?
|
||||||
- line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0
|
|
||||||
%tr.line_holder
|
%tr.line_holder
|
||||||
%td.old_line= "..."
|
%td.old_line= "..."
|
||||||
%td.new_line= "..."
|
%td.new_line= "..."
|
||||||
%td.line_content
|
%td.line_content
|
||||||
|
|
||||||
|
- line_old = line.match(/\-[0-9]*/)[0].to_i.abs rescue 0
|
||||||
|
- line_new = line.match(/\+[0-9]*/)[0].to_i.abs rescue 0
|
||||||
- next
|
- next
|
||||||
|
|
||||||
- full_line = html_escape(line.gsub(/\n/, ''))
|
- full_line = html_escape(line.gsub(/\n/, ''))
|
||||||
|
|
Loading…
Add table
Reference in a new issue