enbas/internal/utilities
Dan Anglin b89c0358f4
fix: resolve infinite loop issue in wrapLine fn
The wrap line function breaks a line at the position of the last
white space before reaching the line limit, however sometimes a single
word (e.g. a very long url) exceeds the character limit itself which
threw the function into an infinite loop. This commit fixes that by
breaking said word at the last letter before the character limit is
reached.
2024-05-27 00:14:29 +01:00
..
utilities.go fix: resolve infinite loop issue in wrapLine fn 2024-05-27 00:14:29 +01:00