HomePhabricator

Added initial class for displaying invisible chars

Tags
None
Referenced Files
F1812711: pasted_file
Sep 13 2016, 3:28 PM
F1812998: pasted_file
Sep 13 2016, 3:28 PM
Subscribers
None

Description

Added initial class for displaying invisible chars

Summary:
Fixes T11586. First pass at a class for displaying invisible characters. Still need to:

  • Write a couple unit tests
  • Add some styling to the .invisible-special spans
  • Actually start using the class when displaying form errors to users

Currently this makes the string "\nab\x00c\x01d\te\nf" look like:

pasted_file (100×573 px, 7 KB)

Test Plan:
Unit tests all pass and run in <1ms:

pasted_file (150×542 px, 49 KB)

Reviewers: epriestley, Blessed Reviewers, chad

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, epriestley, yelirekim

Maniphest Tasks: T11586

Differential Revision: https://secure.phabricator.com/D16541