Break long words in differential two-up view

Summary: This should prevent long lines from making the code width different between files, which can be annoying. (And of course, it stops long lines from making a giant scrollbar too.)

Test Plan:
Loaded this diff in Chrome, Firefox, IE9, and IE8:

{F137505}

(That's a screenshot from Chrome, but it looks about the same in the other browsers.)

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin, chad

Maniphest Tasks: T2004

Differential Revision: https://secure.phabricator.com/D8686
This commit is contained in:
Ben Alpert
2014-04-03 09:37:49 -07:00
committed by epriestley
parent 85394a9e9e
commit 9fedd343eb
6 changed files with 74 additions and 56 deletions

View File

@@ -789,7 +789,7 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
$anchor_text,
// NOTE: See phabricator-oncopy behavior.
"\xE2\x80\x8B",
"\xE2\x81\xA0",
// TODO: [HTML] Not ideal.
phutil_safe_html(str_replace("\t", ' ', $line['data'])),