Improvement for shorten_line
|Reported by:||Owned by:||Remy Blank|
|Component:||version control/log view||Version:|
We've run into an unfortunate behavior or shorten_line. When a commit message starts with something like "This is in reference to 123456\n————————————————————————", shorten_line chops off the "123456" in the revision log view. This is because when it is looking for word boundaries it searches for spaces first and only searches for newlines if no spaces are found.
These patches make it always find the last whitespace character. I've included two versions that are functionally identical but use slightly different styles.
These patches are in the public domain, or under the same license as Trac, or assigned copyright to Edgewall, or whatever you want.