Skip to content

Commit

Permalink
suppress newlines before end tags when formatting via xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebman committed Jan 14, 2025
1 parent 16148cc commit c2ece2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom/jake.bash
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,9 @@ function xml {
return 1
fi

# two-space indent, forcing newlines between elements w/o children
xmlindent -i 2 -f "$@" | bat -pl xml
# two-space indent, forcing newlines between elements w/o children,
# suppressing newline before end-tag
xmlindent -i 2 -f -nbe "$@" | bat -pl xml
}

function xpath {
Expand Down

0 comments on commit c2ece2e

Please sign in to comment.