Skip to content

Commit

Permalink
Include cf. (compare) in set of non-line-ending abbreviations
Browse files Browse the repository at this point in the history
Cherry pick #645 from main
(cherry picked from commit d1bf02b)
  • Loading branch information
gmlueck committed Oct 31, 2024
1 parent 8239f17 commit 14c66d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adoc/scripts/reflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]')

Expand Down

0 comments on commit 14c66d6

Please sign in to comment.