From 21c035ea4b7ac5fbc3455ad494f87997be4a7e0f Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 27 Aug 2013 21:22:27 -0400 Subject: [PATCH 1/1] ni_nitdoc: fixed trailings spaces with empty lines in modified comments Signed-off-by: Alexandre Terrasa --- share/ni_nitdoc/scripts/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/ni_nitdoc/scripts/github.js b/share/ni_nitdoc/scripts/github.js index 89b0ce5..1e932ad 100644 --- a/share/ni_nitdoc/scripts/github.js +++ b/share/ni_nitdoc/scripts/github.js @@ -800,7 +800,7 @@ function GitHubUI() { for(var i = 0; i < commentLines.length; i++) { var line = commentLines[i]; var tab = location.tabpos > 1 ? "\t" : ""; - res += tab + "# " + line + "\n"; + res += tab + (line.length > 0 ? "# " : "#") + line + "\n"; } } // copy lines fron lend to end -- 1.7.9.5