changed wordwrap call to utf8 hard wrap call in multiple places

Summary: using to phutil_utf8_hard_wrap instead of wordwrap

Test Plan: hard_wrap already unit tested

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5155
This commit is contained in:
kwadwo
2013-02-28 09:17:58 -08:00
committed by epriestley
parent 9891394e80
commit 37ee66e27f
3 changed files with 6 additions and 8 deletions

View File

@@ -23,10 +23,8 @@ final class PhabricatorApplicationTransactionTextDiffDetailView
// TODO: On mobile, or perhaps by default, we should switch to 1-up once
// that is built.
// TODO: This should be utf8-aware, but we don't currently have a plain-text
// utf8 hard-wrap function. See T2554.
$old = wordwrap($old, 80);
$new = wordwrap($new, 80);
$old = phutil_utf8_hard_wrap($old, 80);
$new = phutil_utf8_hard_wrap($new, 80);
$engine = new PhabricatorDifferenceEngine();
$changeset = $engine->generateChangesetFromFileContent($old, $new);