From d7e3cc430978b633e45ebcc75c0bf6ce12ab5988 Mon Sep 17 00:00:00 2001 From: liuyongkai Date: Tue, 21 Feb 2023 11:29:20 +0800 Subject: [PATCH] * Resolve feedback #388. and bug #32309. --- module/repo/js/diff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/js/diff.js b/module/repo/js/diff.js index 589a9bfce1..69df534fe1 100644 --- a/module/repo/js/diff.js +++ b/module/repo/js/diff.js @@ -55,13 +55,13 @@ function getDiffs(fileName) { if(code.type == 'all' || code.type == 'new') { - result.code.new += htmlspecialchars_decode(code.line.substring(2)) + "\n"; + result.code.new += htmlspecialchars_decode(code.line.substring(1)) + "\n"; result.line.new.push(parseInt(code.newlc)); } if(code.type == 'all' || code.type == 'old') { - result.code.old += htmlspecialchars_decode(code.line.substring(2)) + "\n"; + result.code.old += htmlspecialchars_decode(code.line.substring(1)) + "\n"; result.line.old.push(parseInt(code.oldlc)); } })