Skip to content

fix(conversion): keep word boundaries across buffered text flushes - #165

Open
pietruszewski wants to merge 1 commit into
ionutdecebal:mainfrom
pietruszewski:word-boundaries
Open

fix(conversion): keep word boundaries across buffered text flushes#165
pietruszewski wants to merge 1 commit into
ionutdecebal:mainfrom
pietruszewski:word-boundaries

Conversation

@pietruszewski

Copy link
Copy Markdown

flushWordAlignedPrefix trimmed the buffer before splitting it, but a trailing space is the only record that a word boundary was already consumed. When the byte crossing the 220-byte threshold was that space, the trim discarded it and the next word was appended straight onto the buffered remainder.

flushWordAlignedPrefix trimmed the buffer before splitting it, but a
trailing space is the only record that a word boundary was already
consumed. When the byte crossing the 220-byte threshold was that space,
the trim discarded it and the next word was appended straight onto the
buffered remainder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant