diff options
Diffstat (limited to 'sonar-markdown/src')
-rw-r--r-- | sonar-markdown/src/main/java/org/sonar/markdown/HtmlListChannel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlListChannel.java b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlListChannel.java index 58fc67ea0fc..9e24ffa91e6 100644 --- a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlListChannel.java +++ b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlListChannel.java @@ -65,7 +65,7 @@ class HtmlListChannel extends Channel<MarkdownOutput> { private int searchIndexOfFirstCharacter(CharSequence token) { for (int index = 0; index < token.length(); index++) { if (token.charAt(index) == '*') { - for (index++; index < token.length(); index++) { + while (++index<token.length()) { if (token.charAt(index) != ' ') { return index; } |