MCPcopy Create free account
hub / github.com/aaronsw/html2text / onlywhite

Function onlywhite

html2text.py:114–119  ·  view source on GitHub ↗

Return true if the line does only consist of whitespace characters.

(line)

Source from the content-addressed store, hash-verified

112### End Entity Nonsense ###
113
114def onlywhite(line):
115 """Return true if the line does only consist of whitespace characters."""
116 for c in line:
117 if c is not ' ' and c is not ' ':
118 return c is ' '
119 return line
120
121def optwrap(text):
122 """Wrap all paragraphs in the provided text."""

Callers 1

optwrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected