From 58895b1763fbc2d09a180204c831cf204adb5e1c Mon Sep 17 00:00:00 2001 From: Dmitriy Dorofeev Date: Thu, 17 Sep 2020 21:45:53 +0300 Subject: Fix too aggressive hyphenation of abbr. words. (#8026) * Fix too aggressive giphenation of abbr. words. * Remove unwanted change at line 2266 --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 5d7d8b4..d78c80e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6297,7 +6297,7 @@ void filterLatexString(FTextStream &t,const char *str, default: //if (!insideTabbing && forceBreaks && c!=' ' && *p!=' ') if (!insideTabbing && - ((c>='A' && c<='Z' && pc!=' ' && pc!='\0' && *p) || (c==':' && pc!=':') || (pc=='.' && isId(c))) + ((c>='A' && c<='Z' && pc!=' ' && !(pc>='A' && pc <= 'Z') && pc!='\0' && *p) || (c==':' && pc!=':') || (pc=='.' && isId(c))) ) { t << "\\+"; -- cgit v0.12