Skip to content

fix(handlers): Fix label position#107

Merged
zkat merged 1 commit intozkat:mainfrom
tailhook:fix_narratable
Jan 17, 2022
Merged

fix(handlers): Fix label position#107
zkat merged 1 commit intozkat:mainfrom
tailhook:fix_narratable

Conversation

@tailhook
Copy link
Contributor

Fixes #106

While fixing the bug I've also extended the handler to print not just
where label starts but also where label ends.

Also implements #97, but for narratabble handler only.

This adds dependency on unicode-width, but it was already in the
dependency chain (textwidth depends on it).

@tailhook tailhook force-pushed the fix_narratable branch 2 times, most recently from 9e36280 to fb9bab6 Compare January 17, 2022 00:29
@tailhook
Copy link
Contributor Author

tailhook commented Jan 17, 2022

Had to make the unicode-width dependency non-optional, since NarratableErrorHandler is always supported. Let me know if you'd like to make the handler be supported in fancy mode only (although, that would make it a breaking change).

Fixes zkat#106

While fixing the bug I've also extended the handler to print not just
where label starts but also where label ends.

Also implements zkat#97, but for narratabble handler only.

This adds dependency on `unicode-width`, but it was already in the
dependency chain (`textwidth` depends on it). Although, previously it
was only for `"fancy"` feature, now it always required since narratable
handler is supported without `"fancy"`.
Copy link
Owner

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh hey this is great! Thank you!

I think adding unicode-width as non-optional is ok--it's pretty small and non-invasive.

@zkat zkat merged commit f158f4e into zkat:main Jan 17, 2022
@tailhook tailhook deleted the fix_narratable branch January 17, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Are labels in narratable report handler right?

2 participants

Comments