Skip to content

Whitespace tokens discarded during text wrapping causing words to glue together #67

@coderabbitai

Description

@coderabbitai

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:

Metadata

Metadata

Assignees

Labels

highLikely to piss people off and likely to happen

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions