Function
docutils.parsers.rst.directives.get_measure

Signature

get_measure(argument, units)

Documentation String

Check for a positive argument of one of the units and return a normalized string of the form "<value><unit>" (without space in between).

To be called from directive option conversion functions.