A bug has been identified in the wrap_preserving_code function in src/lib.rs where whitespace tokens that overflow the current line are discarded, causing words to be glued together after wrapping.
The issue occurs when a whitespace token would exceed the line width limit - the current implementation skips the token entirely instead of preserving it for the next line. This results in words appearing concatenated without proper spacing.
Location: src/lib.rs in the wrap_preserving_code function around lines 314-318
Reported by: @leynos
References:
A bug has been identified in the
wrap_preserving_codefunction insrc/lib.rswhere whitespace tokens that overflow the current line are discarded, causing words to be glued together after wrapping.The issue occurs when a whitespace token would exceed the line width limit - the current implementation skips the token entirely instead of preserving it for the next line. This results in words appearing concatenated without proper spacing.
Location:
src/lib.rsin thewrap_preserving_codefunction around lines 314-318Reported by: @leynos
References: