[doc] Fix rule doc generation when rule description is empty

This commit is contained in:
Andreas Dangel
2022-11-11 10:23:25 +01:00
parent feb1166ec7
commit b1ce2da3b9

View File

@@ -546,7 +546,7 @@ public class RuleDocGenerator {
int indentation = 0;
int strLen = stripped.length();
while (Character.isWhitespace(stripped.charAt(indentation)) && indentation < strLen) {
while (indentation < strLen && Character.isWhitespace(stripped.charAt(indentation))) {
indentation++;
}