Skip to content

Commit 98ba642

Browse files
committed
enhance: remove extra empty line in git blame result
Signed-off-by: leo <longshuang@msn.cn>
1 parent 0e129cb commit 98ba642

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Commands/Blame.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ private void ParseLine(string line)
6666
if (!match.Success)
6767
return;
6868

69-
_content.AppendLine(match.Groups[5].Value);
69+
if (_content.Length > 0)
70+
_content.Append('\n');
71+
_content.Append(match.Groups[5].Value);
7072

7173
var commit = match.Groups[1].Value;
7274
var file = match.Groups[2].Value.Trim();

0 commit comments

Comments
 (0)