Open ofaucheux opened 1 month ago
Thanks for the report @ofaucheux ! Always appreciate a runnable example along with an already clear bug report. Did you already explore what the reason might be? Without having gone in yet it seems we might visit the doctype differently from other elements.
You're welcome, @timtebeek , and no, I didn't investigate the cause of the problem and will not be in the position to do it.
I am using OpenRewrite Version 8.27.0 and the
org.openrewrite.xml.format.TabsAndIndents
recept.The issue: a new line in the
<!DOCTYPE>
declaration element of an XML file is not indented with thecontinuationIndentSize
as it should be.Following test reproduces the issue:
The result:
as you see, the continuation line into the doctype has not be indented.