Fix formatting of DesignSpaceDocument spec

This commit is contained in:
Masaya Nakamura 2018-05-21 16:07:09 +09:00 committed by GitHub
parent ceb41ec484
commit 29d3abe920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ Attributes
- ``path``: string. Absolute path to the source file, calculated from - ``path``: string. Absolute path to the source file, calculated from
the document path and the string in the filename attr. MutatorMath + the document path and the string in the filename attr. MutatorMath +
Varlib. Varlib.
``layerName``: string. The name of the layer in the source to look for - ``layerName``: string. The name of the layer in the source to look for
outline data. Default ``None`` which means ``foreground``. outline data. Default ``None`` which means ``foreground``.
- ``font``: Any Python object. Optional. Points to a representation of - ``font``: Any Python object. Optional. Points to a representation of
this source font that is loaded in memory, as a Python object this source font that is loaded in memory, as a Python object
@ -130,7 +130,7 @@ Attributes
writer will not use this attribute. It is up to the user of writer will not use this attribute. It is up to the user of
``designspaceLib`` to either load the resource identified by ``filename`` ``designspaceLib`` to either load the resource identified by ``filename``
and store it in this field, or write the contents of this field to the and store it in this field, or write the contents of this field to the
disk and make ```filename`` point to that. disk and make ``filename`` point to that.
- ``name``: string. Optional. Unique identifier name for this source, - ``name``: string. Optional. Unique identifier name for this source,
if there is one or more ``instance.glyph`` elements in the document. if there is one or more ``instance.glyph`` elements in the document.
MutatorMath. MutatorMath.
@ -561,7 +561,7 @@ There are two meanings for the ``lib`` element:
2. Document and instance lib 2. Document and instance lib
- Example: - Example:
.. code:: python .. code:: xml
<lib> <lib>
<dict> <dict>