[gitg] Fix diff view formatting of EOFNL (Add and Delete)
- From: Sindhu S <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix diff view formatting of EOFNL (Add and Delete)
- Date: Sat, 15 Jun 2013 13:23:12 +0000 (UTC)
commit 7d3645b3cfe33da5950a480ae0884776b54ed7ec
Author: Sindhu S <sindhus live in>
Date: Sat Jun 15 13:34:09 2013 +0530
Fix diff view formatting of EOFNL (Add and Delete)
libgitg-gtk/resources/diff-view-html-builder.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libgitg-gtk/resources/diff-view-html-builder.js b/libgitg-gtk/resources/diff-view-html-builder.js
index 0691032..10df3c6 100644
--- a/libgitg-gtk/resources/diff-view-html-builder.js
+++ b/libgitg-gtk/resources/diff-view-html-builder.js
@@ -59,6 +59,14 @@ function diff_file(file, lnstate, data)
cold++;
removed++;
break;
+ case '=':
+ case '>':
+ case '<':
+ row += 'context"> \
+ <td class="gutter old"></td> \
+ <td class="gutter new"></td>';
+ l.content = l.content.substr(1, l.content.length);
+ break;
default:
row += '">';
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]