lukeed/tidyPublic

refactor: shared whitespace option

HTML, Handlebars and XML each had their own whitespace enum. One
tidyrs::Whitespace now names the same choices for all: strict,
auto (Prettier's css, the XML plugin's preserve) and ignore.
LELuke Edwards authored
c776911Patch
Parent7b1b52d
10 files changed+49-50
StackedSplit
crates/tidyrs/src/handlebars/mod.rs+3 โˆ’3
crates/tidyrs/src/html/mod.rs+3 โˆ’13
crates/tidyrs/src/html/utilities.rs+2 โˆ’2
crates/tidyrs/src/lib.rs+14 โˆ’0
crates/tidyrs/src/xml/mod.rs+3 โˆ’12
crates/tidyrs/src/xml/print.rs+3 โˆ’2
crates/tidyrs/tests/deviations.rs+6 โˆ’6
crates/tidyrs/tests/xml.rs+3 โˆ’2
crates/tidyrs_cli/src/main.rs+6 โˆ’5
crates/tidyrs_napi/src/lib.rs+6 โˆ’5