You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formatter inlines XML-like closing tags inconsistently in command files #64
The post-edit prettier formatter hook inlines closing XML-like tags (e.g. </context-detection>, </auto-fix>, </output-format>) onto the preceding line of text, while most other closing tags in the same file (</checks>, </doctor-mode>, etc.) remain on their own lines. This creates inconsistency within the file and noisy diffs when a targeted fix triggers reformatting.
-Report which context was detected at the top of output.-</context-detection>+Report which context was detected at the top of output. </context-detection>
Root cause
Prettier's line-length enforcement moves short closing tags inline when the preceding line has room. The inconsistency arises because some sections were written under a different formatter config or before the hook was added.
Options
Add <!-- prettier-ignore --> or {/* prettier-ignore */} before affected sections
Configure prettier to treat these XML-like blocks differently
Accept formatter output as canonical and let it normalize the whole file over time
Activity