Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
RELNOTES[NEW]: Add goog.string.Unicode.ZERO_WIDTH_SPACE.
Browse files Browse the repository at this point in the history
This is useful for word-wrapping in text context (same as <wbr> in HTML context). Zero-width space is an invisible character so it's better to use it in the code indirectly through this enum.

PiperOrigin-RevId: 473309362
Change-Id: Ia8ab342d28d09af1317875da508f7e4b304f09bf
  • Loading branch information
vrana authored and copybara-github committed Sep 9, 2022
1 parent 07fcbd5 commit 5feed4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion closure/goog/string/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ goog.string.FORCE_NON_DOM_HTML_UNESCAPING =
* @enum {string}
*/
goog.string.Unicode = {
NBSP: '\xa0'
NBSP: '\xa0',
ZERO_WIDTH_SPACE: '\u200b' // This is equivalent to <wbr>.
};


Expand Down

0 comments on commit 5feed4e

Please # to comment.