MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / formula2RST

Function formula2RST

Web/scripts/CPWeb/SphinxTools.py:448–452  ·  view source on GitHub ↗

See: https://docutils.sourceforge.io/docs/ref/rst/roles.html#subscript

(formula)

Source from the content-addressed store, hash-verified

446
447
448def formula2RST(formula):
449 """
450 See: https://docutils.sourceforge.io/docs/ref/rst/roles.html#subscript
451 """
452 return formula.replace('_{', r'\ :sub:`').replace('}',r'`\ ').replace(r'\ :sub:`1`\ ', '')
453
454
455def entry2html(entry):

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected