Fix typo in tutorial string representation example

This commit is contained in:
Eduard Bopp
2014-03-29 13:34:48 +01:00
parent fbe91c7fe6
commit 4a85e8d0a2

View File

@@ -214,8 +214,8 @@ But Pint also extends the standard formatting capabilities for unicode and latex
>>> 'The latex representation is {:L}'.format(accel)
'The latex representation is 1.3 \\frac{meter}{second^{2}}'
>>> # HTML print
>>> 'The latex representation is {:H}'.format(accel)
'The latex representation is 1.3 meter/second<sup>2</sup>'
>>> 'The HTML representation is {:H}'.format(accel)
'The HTML representation is 1.3 meter/second<sup>2</sup>'
If you want to use abbreviated unit names, suffix the specification with `~`: