TEXT-231: WordUtils.wrap react to pre-existing "newline string"#458
TEXT-231: WordUtils.wrap react to pre-existing "newline string"#458michaelkarnerfors wants to merge 2 commits intoapache:masterfrom
Conversation
wrap - The main loop is completely rewritten, aiming to increase legibility of the code - The wrap method now respects pre-existing newline strings - An inconsistency in how zero-length "wrapOn" patterns are treated has been addressed - Test cases for the wrap method are made parametrised and named
- Fixing bug that made newline not be respected in case wrapLongWords is false and the first word on a line was too long - Adding test cases for above, and for the same condition with wrapOn
2673e3c to
22a5b04
Compare
|
-1 as is:
|
IntelliJ IDEA also supports @DisplayName and parametrised tests (and Jetbrains even recommends it), as does Visual Studio Code. Hence the comment is counterproductive: Javadoc adds more "clutter" than @DisplayName, without achieving the purpose for which the annotation was added.
|


WordUtils.wrap made to react to pre-existing "newline string" as a wrap