From 599827eff1cedf6141b15f7fdbbcfed4b23ae86a Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 29 Oct 2014 14:50:52 +0100 Subject: CSS changes. - As discussed: - gutter a little lighter, context lines nearly but not quite white. - 2px left (and right) padding in the code column. - I also noticed that somehow all lines were spaced vertically a little wider than on dev.gitblit. Added cellpadding='0' to get the old line height again. --- src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java') diff --git a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java index b18093ff..5de9e50a 100644 --- a/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java +++ b/src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java @@ -210,7 +210,7 @@ public class GitBlitDiffFormatter extends DiffFormatter { } StringBuilder sb = new StringBuilder(MessageFormat.format("
", id)); sb.append(StringUtils.escapeForHtml(path, false)).append("
"); - sb.append("
\n"); + sb.append("
\n"); os.write(sb.toString().getBytes()); } // Keep formatting, but if off, don't produce anything anymore. We just keep on counting. @@ -459,7 +459,7 @@ public class GitBlitDiffFormatter extends DiffFormatter { sb.append(MessageFormat.format("
{0}
", StringUtils.escapeForHtml(getMsg("gb.diffTruncated", "Diff truncated after the above file"), false))); // List all files not shown. We can be sure we do have at least one path in skipped. - sb.append("
"); + sb.append("
"); String deletedSuffix = StringUtils.escapeForHtml(getMsg("gb.diffDeletedFileSkipped", "(deleted)"), false); boolean first = true; for (DiffEntry entry : skipped) { -- cgit v1.2.3