summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeewis <keewis@posteo.de>2021-08-22 12:06:33 +0200
committerKeewis <keewis@posteo.de>2021-08-23 23:36:39 +0200
commitb273758106984ccf9bc502bafc1ad1a34024068d (patch)
tree5e94f2b398b796661b656b19308f600d13a9ed2f
parent4b3bd493eda29d5e8dfae18e7c865c742af37ac8 (diff)
downloadpint-b273758106984ccf9bc502bafc1ad1a34024068d.tar.gz
move the unit format spec description into its own section
-rw-r--r--docs/formatting.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/formatting.rst b/docs/formatting.rst
index 12ac9ce..1d1bc91 100644
--- a/docs/formatting.rst
+++ b/docs/formatting.rst
@@ -10,6 +10,8 @@
String formatting
=================
+Unit Format Specifications
+--------------------------
A :doc:`format specification <formatspec>` used to format :py:class:`Unit` objects in
e.g. f-strings consists of a ``type`` and optionally a "modifier", where the order does
not matter. For example, ``P~`` and ``~P`` have the same effect. If the ``type`` is