diff options
author | Raph Levien <raph@google.com> | 2015-09-08 18:19:53 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2016-02-17 23:12:48 +0000 |
commit | 6d15657e4a3826d4d47d5358f1dde211484527e9 (patch) | |
tree | 1b8e554180f258bdc6c1924413374b23bf424cae /include | |
parent | 9c4cc648abcae144f3b99d612e58ef01d5e52cce (diff) | |
download | android_frameworks_minikin-6d15657e4a3826d4d47d5358f1dde211484527e9.tar.gz android_frameworks_minikin-6d15657e4a3826d4d47d5358f1dde211484527e9.tar.bz2 android_frameworks_minikin-6d15657e4a3826d4d47d5358f1dde211484527e9.zip |
Add line breaks to email addresses and URLs
This change adds accceptable line breaks according to sections 7.42
(Dividing URLs and e-mail addresses) and 14.12 (URLs or DOIs and line
breaks) of the Chicago Manual of Style (16th ed.). In general, these
place breaks before punctuation symbols, and suppresses them after
hyphens.
Bug: 20126487
Bug: 20566159
Change-Id: I2d07d516b920a506a2f718c38fb435c5eb1ee1f8
Diffstat (limited to 'include')
-rw-r--r-- | include/minikin/WordBreaker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/minikin/WordBreaker.h b/include/minikin/WordBreaker.h index 8c00502..c4aa151 100644 --- a/include/minikin/WordBreaker.h +++ b/include/minikin/WordBreaker.h @@ -63,7 +63,7 @@ private: // state for the email address / url detector ssize_t mScanOffset; - bool mSuppressHyphen; + bool mInEmailOrUrl; }; } // namespace |