Differential D8727 Diff 20695 src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
| Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | for ($ii = $range_start; $ii < $range_start + $range_len; $ii++) { | ||||
| } | } | ||||
| if ($n_num && $right_id) { | if ($n_num && $right_id) { | ||||
| $n_id = 'C'.$right_id.$right_char.'L'.$n_num; | $n_id = 'C'.$right_id.$right_char.'L'.$n_num; | ||||
| } else { | } else { | ||||
| $n_id = null; | $n_id = null; | ||||
| } | } | ||||
| // NOTE: This is a unicode 'word joiner' (essentially a non-breaking | // NOTE: This is a unicode zero-width space, which we use as a hint when | ||||
| // zero-width space), which we use as a hint when intercepting 'copy' | // intercepting 'copy' events to make sure sensible text ends up on the | ||||
| // events to make sure sensible text ends up on the clipboard. | // clipboard. See the 'phabricator-oncopy' behavior. | ||||
| // See the 'phabricator-oncopy' behavior. | $zero_space = "\xE2\x80\x8B"; | ||||
| $zero_space = "\xE2\x81\xA0"; | |||||
| // NOTE: The Javascript is sensitive to whitespace changes in this | // NOTE: The Javascript is sensitive to whitespace changes in this | ||||
| // block! | // block! | ||||
| $html[] = phutil_tag('tr', array(), array( | $html[] = phutil_tag('tr', array(), array( | ||||
| phutil_tag('th', array('id' => $o_id), $o_num), | phutil_tag('th', array('id' => $o_id), $o_num), | ||||
| phutil_tag('td', array('class' => $o_classes), $o_text), | phutil_tag('td', array('class' => $o_classes), $o_text), | ||||
| phutil_tag('th', array('id' => $n_id), $n_num), | phutil_tag('th', array('id' => $n_id), $n_num), | ||||
| $n_copy, | $n_copy, | ||||
| phutil_tag( | phutil_tag( | ||||
| 'td', | 'td', | ||||
| array('class' => $n_classes, 'colspan' => $n_colspan), | array('class' => $n_classes, 'colspan' => $n_colspan), | ||||
| array($zero_space, $n_text)), | array( | ||||
| phutil_tag('span', array('class' => 'zwsp'), $zero_space), | |||||
| $n_text | |||||
| )), | |||||
| $n_cov, | $n_cov, | ||||
| )); | )); | ||||
| if ($context_not_available && ($ii == $rows - 1)) { | if ($context_not_available && ($ii == $rows - 1)) { | ||||
| $html[] = $context_not_available; | $html[] = $context_not_available; | ||||
| } | } | ||||
| $old_comments = $this->getOldComments(); | $old_comments = $this->getOldComments(); | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||