MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / endSentence

Method endSentence

scripts/reflow.py:126–138  ·  view source on GitHub ↗

Return True if word ends with a sentence-period, False otherwise. Allows for contraction cases which will not end a line: - A single letter (if breakInitial is True) - Abbreviations: 'c.f.', 'e.g.', 'i.e.' (or mixed-case versions)

(self, word)

Source from the content-addressed store, hash-verified

124 """Count of markup check warnings encountered."""
125
126 def endSentence(self, word):
127 """Return True if word ends with a sentence-period, False otherwise.
128
129 Allows for contraction cases which will not end a line:
130
131 - A single letter (if breakInitial is True)
132 - Abbreviations: 'c.f.', 'e.g.', 'i.e.' (or mixed-case versions)"""
133 if (word[-1:] != '.' or
134 endAbbrev.search(word) or
135 (self.breakInitial and endInitial.match(word))):
136 return False
137
138 return True
139
140 def vuidAnchor(self, word):
141 """Return True if word is a Valid Usage ID Tag anchor."""

Callers 1

transformParagraphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected