summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2015-09-08 18:19:53 -0700
committerRaph Levien <raph@google.com>2016-02-17 23:12:48 +0000
commit6d15657e4a3826d4d47d5358f1dde211484527e9 (patch)
tree1b8e554180f258bdc6c1924413374b23bf424cae /include
parent9c4cc648abcae144f3b99d612e58ef01d5e52cce (diff)
downloadandroid_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.h2
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