Enabling "wrap text" does not break lines at word boundary

Bug #1236739 reported by dajare
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Low
The Lemon Man

Bug Description

Enabling the "wrap text" option does indeed wrap text at the window boundary, but it breaks lines AT the window boundary regardless of the character.

It would be preferable to have line breaks at spaces, of course, as this makes the text much more legible.

I suppose this is a request for something equivalent to vi(m)'s "set linebreak" option:

http://vimdoc.sourceforge.net/htmldoc/options.html#%27linebreak%27

Thanks!

David.

Tags: linebreak wrap
Revision history for this message
dajare (dajare) wrote :
Revision history for this message
dajare (dajare) wrote :

Just for clarity, here is same text, equivalent text width, in Vim, with "set linebreak" on. How much more legible!

Revision history for this message
dajare (dajare) wrote :

Could this be considered a duplicate of Bug #883835, "Imitate vim textwidth"?

If so, this issue can be closed.

Revision history for this message
The Lemon Man (lemonboy) wrote :

Hello,
this was a ridiculously low-hanging fruit so I took the chance and fixed this.

Revision history for this message
dajare (dajare) wrote :

@lemonboy : nicely done! And that was particularly "low-hanging", wasn't it. Odd that it wasn't implemented that way in the first place.

Now hoping a compiled version gets pushed soon. (I get updates via PPA.)

Thanks!

Revision history for this message
Cody Garver (codygarver) wrote :
Changed in scratch:
assignee: nobody → The Lemon Man (lemonboy)
importance: Undecided → Low
milestone: none → freya-rc1
status: New → Fix Committed
Revision history for this message
The Lemon Man (lemonboy) wrote :

It seems that you can't claim the bounty unless this bug is closed.

Revision history for this message
Cody Garver (codygarver) wrote : Re: [Bug 1236739] Re: Enabling "wrap text" does not break lines at word boundary

Try again in 24 hours

On Sat, Apr 4, 2015 at 2:44 AM, The Lemon Man <email address hidden> wrote:

> It seems that you can't claim the bounty unless this bug is closed.
>
> --
> You received this bug notification because you are subscribed to
> elementary LLC..
> https://bugs.launchpad.net/bugs/1236739
>
> Title:
> Enabling "wrap text" does not break lines at word boundary
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/scratch/+bug/1236739/+subscriptions
>

--
Cody Garver

Cody Garver (codygarver)
Changed in scratch:
milestone: freya-rc1 → 2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.