mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
Merge pull request #23672 from mshabunin:fix-javadoc17
This commit is contained in:
parent
d4861bfd1f
commit
537060d96f
@ -1353,7 +1353,7 @@ def sanitize_java_documentation_string(doc, type):
|
|||||||
indexDiff += 1
|
indexDiff += 1
|
||||||
lines[index + indexDiff] = lines[index + indexDiff][0:i] + lines[index + indexDiff][i + 1:]
|
lines[index + indexDiff] = lines[index + indexDiff][0:i] + lines[index + indexDiff][i + 1:]
|
||||||
else:
|
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) + "</li>")
|
lines.insert(index + indexDiff, " "*len(listInd) + "</li>")
|
||||||
indexDiff += 1
|
indexDiff += 1
|
||||||
del listInd[-1]
|
del listInd[-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user