diff --git a/modules/java/generator/gen_java.py b/modules/java/generator/gen_java.py index c5b4f34a8f..6f07ad913d 100755 --- a/modules/java/generator/gen_java.py +++ b/modules/java/generator/gen_java.py @@ -1353,7 +1353,7 @@ def sanitize_java_documentation_string(doc, type): indexDiff += 1 lines[index + indexDiff] = lines[index + indexDiff][0:i] + lines[index + indexDiff][i + 1:] else: - if listInd and (not line or line == "*" or line.startswith("@note")): + if listInd and (not line or line == "*" or line.strip().startswith("@note") or line.strip().startswith("@param")): lines.insert(index + indexDiff, " "*len(listInd) + "") indexDiff += 1 del listInd[-1]