-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generator/Text: allow for multi-line rule explanations
While new lines were (accidentally) being respected by the existing code, the line length count was not being reset when a new line character was encountered, causing weird line wrapping. This has been fixed now by: * First splitting the received text into individual lines. * Then doing the line wrapping calculations for each line individually. Includes: * Reducing the code complexity by removing an `else` and using an early `continue` instead. * Removing some duplicate function calls.
- Loading branch information
Showing
1 changed file
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters