Page MenuHomePhabricator

Remove hidden zero-width spaces affecting copy behavior
ClosedPublic

Authored by epriestley on Feb 17 2019, 12:13 PM.
Tags
None
Referenced Files
F13082893: D20189.diff
Wed, Apr 24, 10:20 PM
Unknown Object (File)
Sun, Apr 21, 9:53 AM
Unknown Object (File)
Fri, Apr 19, 11:28 PM
Unknown Object (File)
Wed, Apr 10, 11:34 AM
Unknown Object (File)
Fri, Apr 5, 2:02 PM
Unknown Object (File)
Mar 21 2024, 2:03 PM
Unknown Object (File)
Mar 21 2024, 12:26 PM
Unknown Object (File)
Feb 3 2024, 9:25 PM
Subscribers
None

Details

Summary

Ref T13161. Ref T12822. Today, we use invisible Zero-Width Spaces to try to improve copy/paste behavior from Differential.

After D20188, we no longer need ZWS characters to avoid copying line numbers. Get rid of these secret invisible semantic ZWS characters completely.

This means that both the left-hand and right-hand side of diffs become copyable, which isn't desired. I'll fix that with a hundred thousand lines of Javascript in the next change: this is a step toward everything working better, but doesn't fix everything yet.

Test Plan
  • Grepped for zws, grep -i zero | grep -i width.
  • Copied text out of Differential: got both sides of the diff (not ideal).

Diff Detail

Repository
rP Phabricator
Branch
sorcery2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22045
Build 30116: Run Core Tests
Build 30115: arc lint + arc unit