From 14c66d6e9b6ec0313588ae806ea91167aa461fb2 Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Thu, 31 Oct 2024 09:16:33 -0400 Subject: [PATCH] Include cf. (compare) in set of non-line-ending abbreviations Cherry pick #645 from main (cherry picked from commit d1bf02b79d7439113700d4983271ec49a2080c9b) --- adoc/scripts/reflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adoc/scripts/reflow.py b/adoc/scripts/reflow.py index f5bf81b1..0869562c 100755 --- a/adoc/scripts/reflow.py +++ b/adoc/scripts/reflow.py @@ -53,7 +53,7 @@ # A single letter followed by a period, typically a middle initial. endInitial = re.compile(r'^[A-Z]\.$') # An abbreviation, which does not (usually) end a line. -endAbbrev = re.compile(r'(e\.g|i\.e|c\.f|\bvs\b|\bco\b|\bltd\b|\bch\b)\.$', re.IGNORECASE) +endAbbrev = re.compile(r'(e\.g|i\.e|\bvs\b|\bco\b|\bltd\b|\bch\b|\bcf\b)\.$', re.IGNORECASE) # A lower case word. When "etc." is followed by this, it does not end a line. startsLowerCase = re.compile(r'\(?[a-z]')