miette/src/handlers
Benjamin Lee 196c09ce7a
fix(graphical): Align highlights correctly with wide unicode characters and tabs (#202)
Fixes: https://github.com/zkat/miette/issues/97
Fixes: https://github.com/zkat/miette/issues/87

Tabs are always expanded to spaces by the graphical handler, and `tab_width` now defaults to 4. Instead of replacing every tab with a fixed number of spaces, spaces are used to align to the next tabstop. `tab_width` controls the space between tabstops rather than the fixed width of each tab character.

Co-authored-by: Benjamin Lee <benjamin@computer.surgery>
2022-09-10 14:20:37 -07:00
..
debug.rs feat(diagnostic_source): add protocol method for Diagnostic-aware source chaining (#165) 2022-05-05 08:32:37 -07:00
graphical.rs fix(graphical): Align highlights correctly with wide unicode characters and tabs (#202) 2022-09-10 14:20:37 -07:00
json.rs feat(json): `causes` support (#188) 2022-07-31 11:47:06 -07:00
mod.rs feat: add fancy-no-backtrace feature (#144) 2022-03-22 12:30:52 -07:00
narratable.rs feat(graphical): Allow miette users to opt-out of the rendering of the cause chain (#192) 2022-08-09 17:32:02 -07:00
theme.rs feat(theme): restructure automatic color selection (#177) 2022-06-24 08:30:36 -07:00