glamour icon indicating copy to clipboard operation
glamour copied to clipboard

A bug in word wrapping (with a failing test case)

Open markusylisiurunen opened this issue 6 months ago • 2 comments

Describe the bug

Word wrapping is broken under certain conditions.

Setup

  • OS: macOS
  • Shell: Reproducible as a test case

To Reproduce

I will open a PR with a failing test case.

Expected behavior

Word wrapping to work correctly.

markusylisiurunen avatar Jun 07 '25 14:06 markusylisiurunen

The PR can be found here: #452

Actual outcome:

Of course. Based on my exploration, this project is a command-line application written
in
Go. It acts as...

Expected outcome:

Of course. Based on my exploration, this project is a command-line application written
in Go. It acts as...

markusylisiurunen avatar Jun 07 '25 14:06 markusylisiurunen

The issue was in reflow/wordwrap, see PR here: https://github.com/muesli/reflow/pull/77

markusylisiurunen avatar Jun 07 '25 16:06 markusylisiurunen