Skip to content

Commit

Permalink
reference attributes in elements tables too + remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Aug 27, 2016
1 parent 51f09da commit 18b90de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .doc/README.md
Expand Up @@ -36,7 +36,6 @@ pygettext -d cv -p locale/ .doc/docutils/directives/*.py
TODOs
-----

TODO: possibility to map attribute names to links
TODO: improve element description retrieval from XSD, possibility to extend
TODO: transfer content from wiki
TODO: establish structure for manual (done for widgets)
Expand Down
3 changes: 2 additions & 1 deletion .doc/docutils/directives/common.py
Expand Up @@ -157,8 +157,9 @@ def generate_complex_table(self, element_name, include_name=False, mandatory=Fal
else:
description = ''

name = ":ref:`%s <%s>`" % (name, name)
if attr.get('use', 'optional') == "required":
name += "*"
name += " *"

atype = self.normalize_type(atype) if len(values) == 0 else self.normalize_values(values)
if include_name:
Expand Down

0 comments on commit 18b90de

Please sign in to comment.