MCPcopy Create free account
hub / github.com/PageBot/PageBot / sub

Method sub

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:1271–1280  ·  view source on GitHub ↗

The sub tag implements the standard XTHML tag for inferior (subscript) text. self.text('Normal text') self.sub() self.text('and inferior') self._sub() Normal text and inferior

(self, **args)

Source from the content-addressed store, hash-verified

1269 self._closeTag_noWhitespace('sup')
1270
1271 def sub(self, **args):
1272 """
1273 The sub tag implements the standard XTHML tag for inferior (subscript) text.
1274 self.text('Normal text')
1275 self.sub()
1276 self.text('and inferior')
1277 self._sub()
1278 Normal text <sub>and inferior</sub>
1279 """
1280 self.write_tag_noWhitespace('sub', True, args)
1281 def _sub(self):
1282 self._closeTag_noWhitespace('sub')
1283

Callers 3

stripTagsFunction · 0.80
stripMultipleWhiteLinesFunction · 0.80
titlecaseFunction · 0.80

Calls 1

Tested by

no test coverage detected