Improve hard-wrapping in commit messages
commit0499d4cc7d30b08712015ed61adbb19a1aec78d6
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 30 Jun 2017 11:56:15 +0000 (30 13:56 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 7 Jul 2017 22:09:44 +0000 (7 18:09 -0400)
tree828870affd3e3076ae97d7fa3a71de4d49bdade6
parentbbc2a5cfaf50eb829f15091da3a83071b45d9a28
Improve hard-wrapping in commit messages

Preserve the current behavior as much as possible, but relax the
rules about wrapping long words. This prevents moving long URLs
(or other long "words") to new lines when doing so doesn't improve
the formatting. In particular, it'll keep URLs used in references[1]
on the line with the reference index.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=519012#c0&dummy=0&dummy=0&dummy=0

Bug: 519012
Change-Id: Ic13662d6c3eed93957d9486a88fe1c92a1157019
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageAreaTest.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java