Typo in display docs (#28)

This commit is contained in:
YuanL.Lee 2018-09-29 20:50:55 +08:00 committed by Otto Winter
parent 20e5799e56
commit c7f029d093

View File

@ -257,7 +257,7 @@ Another interesting format string is ``%7.2f``, which would become the right-jus
- ``%`` - initiate the format - ``%`` - initiate the format
- ``7`` - means that the number will be right-justified and be padded on the left by spaces if - ``7`` - means that the number will be right-justified and be padded on the left by spaces if
the result would be shorter than 7 characters long. the result would be shorter than 7 characters long.
- ``.1`` - round the decimal number to ``1`` digits after the decimal point. - ``.2`` - round the decimal number to ``2`` digits after the decimal point.
- ``f`` - specifier: f(loat). - ``f`` - specifier: f(loat).
You can even have as many format strings as you want in a single printf call. Just make sure the put the You can even have as many format strings as you want in a single printf call. Just make sure the put the
@ -317,7 +317,7 @@ Images
Configuration variables: Configuration variables:
- **file** (**Required**, string): The path (relative to where the .yaml file is) of the image file. - **file** (**Required**, string): The path (relative to where the .yaml file is) of the image file.
- **id** (**Required**, :ref:`config-id`): The ID with which you will be able to reference the font later - **id** (**Required**, :ref:`config-id`): The ID with which you will be able to reference the image later
in your display code. in your display code.
- **resize** (*Optional*, int): If set, this will resize the image to fit inside the given dimensions ``WIDTHxHEIGHT`` - **resize** (*Optional*, int): If set, this will resize the image to fit inside the given dimensions ``WIDTHxHEIGHT``
and preserve the aspect ratio. and preserve the aspect ratio.