walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
675 stars 19 forks source link

Avoid wrapping lines inside of numbers #252

Closed walles closed 2 weeks ago

walles commented 3 weeks ago

See this screenshot for example: https://github.com/walles/moar/issues/250#issuecomment-2450737725

We should treat numbers as words when we wrap.

Unclear what we should do with abc123, but as long as we don't wrap in the middle of 123 I'll consider this issue fixed.

walles commented 2 weeks ago

This was due to not breaking on hyphens.

Thus there was nowhere to break these lines, and we fell back to just cutting at the right edge.

Fixed now.