diff options
Diffstat (limited to 'src/main/java/com/gitblit/utils/StringUtils.java')
-rw-r--r-- | src/main/java/com/gitblit/utils/StringUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/utils/StringUtils.java b/src/main/java/com/gitblit/utils/StringUtils.java index 7c4eef8b..0e23d637 100644 --- a/src/main/java/com/gitblit/utils/StringUtils.java +++ b/src/main/java/com/gitblit/utils/StringUtils.java @@ -128,8 +128,9 @@ public class StringUtils { }
l = (l + 1) % tabLength;
- if (inStr.charAt(i) == '\n')
+ if (inStr.charAt(i) == '\n') {
l = 0;
+ }
i++;
}
return retStr.toString();
|