fix literal rendering in dictionary options docs

Fix the syntax error in the python example for dictionary options so
pygments will render it properly.

Use a code-block directive to tell pygments that the inline INI file is
an INI file, since it does not figure that out automatically.

Closes-Bug: #1413389
Change-Id: I16441739e6cbfe8ad497aa0860fbc85a4a2d8123
This commit is contained in:
Doug Hellmann 2015-09-24 20:40:31 +00:00 committed by Davanum Srinivas (dims)
parent 046be3b1fd
commit 3226a4777d
1 changed files with 4 additions and 2 deletions

View File

@ -274,11 +274,13 @@ use the DictOpt::
opts = [
cfg.DictOpt('foo',
default={}))
default={})
]
The end users can then specify the option foo in their configuration file
as shown below::
as shown below:
.. code-block:: ini
[DEFAULT]
foo = k1:v1,k2:v2