Pankraz76 commented on code in PR #2407: URL: https://github.com/apache/maven/pull/2407#discussion_r2120301420
########## impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/jdom/JDomUtils.java: ########## @@ -220,19 +226,131 @@ public static String detectIndentation(Element element) { return indent; } else { // This should be the indentation of the elements end tag. - return indent + " "; + String baseIndent = detectBaseIndentationUnit(element); + return indent + baseIndent; } } } Parent parent = element.getParent(); if (parent instanceof Element) { - return detectIndentation((Element) parent) + " "; + String baseIndent = detectBaseIndentationUnit(element); + return detectIndentation((Element) parent) + baseIndent; Review Comment: - https://github.com/pmd/pmd/issues/5770 `return detectIndentation((Element) parent) + detectBaseIndentationUnit(element)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org