You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technical Info (please complete the following information)
OS: MacOS
Signale Version: ^1.3.0
Node.js Version: 10.13.0
Additional context
I discovered this in my testing of JasonEtco/actions-toolkit#45 - for some reason, the GitHub Actions log display adds additional spaces for labels with an underline:
I dug into it and discovered this code. I'm sure its needed for regular terminals/output, but it borks a little in Actions so I just disable underlines entirely (since they wouldn't show up anyway):
Nice catch! Apparently the stream.Writable in-use does not support ANSI escape codes, which combined with the bug/fact that the time() & timeEnd() unaries did not follow the underlineLabel option, resulted in the asymmetrical end-padding of the timer labels. Setting the underlineLabel option to false should now resolve the issue and display the labels as expected. Also, in the upcoming releases, it is planned for signale to automatically detect if ANSI codes are supported at all, and if not, to completely avoid using them. Thank you a lot for taking the time to report the issue! : )
Describe the bug
Setting
config.underlineLabel
does not remove the underline from thetime
andtimeEnd
methods.To Reproduce
Here's the code I'm working with - I've disabled any of the available
underline*
properties, thoughunderlineLabel
should be all that's needed:Expected behavior
I'd expect the
underlineLabel: false
setting to apply to thetime
andtimeEnd
methods like it does for others.Looks like that's being set here, without a check for
_config.underlineLabel
:https://github.com/klaussinani/signale/blob/ae5701e610034629b44e028010a18b593e0b64c0/signale.js#L325
Technical Info (please complete the following information)
^1.3.0
10.13.0
Additional context
I discovered this in my testing of JasonEtco/actions-toolkit#45 - for some reason, the GitHub Actions log display adds additional spaces for labels with an underline:
I dug into it and discovered this code. I'm sure its needed for regular terminals/output, but it borks a little in Actions so I just disable underlines entirely (since they wouldn't show up anyway):
https://github.com/klaussinani/signale/blob/ae5701e610034629b44e028010a18b593e0b64c0/signale.js#L212-L216
Let me know if I can clarify anything! Happy to open a PR fixing this if y'all are into it.
The text was updated successfully, but these errors were encountered: