Change miette theme based on ANSI config (#5588)

* Change miette theme based on ANSI config

Use the base ansi colors to simplify the use of the terminal emulator
theming.
Turn of most eye-candy (including unicode) when using
`$config.use_ansi_coloring: false`

Addresses #5582

* Fix error test affected by changed styling
This commit is contained in:
Stefan Holderbach
2022-05-19 20:59:14 +02:00
committed by GitHub
parent 8fdc272bcc
commit 0d06b6259f
2 changed files with 14 additions and 3 deletions

View File

@ -181,7 +181,7 @@ fn errors_fetching_by_column_using_a_number() {
.contains("Data cannot be accessed with a cell path"),);
assert!(actual
.err
.contains(" record<0: string> doesn't support cell paths"),);
.contains("record<0: string> doesn't support cell paths"),);
})
}