diff options
| author | Jim Fehrle | 2020-03-22 21:49:56 -0700 |
|---|---|---|
| committer | Jim Fehrle | 2020-03-22 21:49:56 -0700 |
| commit | 7d5130835c8d768f96399c958b8171c88e00002d (patch) | |
| tree | e58b1d36888b6f9211b45380fc81932d3ca7d5aa /doc/tools | |
| parent | 7ba059507b67b1f6ea3566a5d1dee40f6af78316 (diff) | |
Format hyperlink targets and link ids with the same name
(translate '_' to '-' consistently)
Diffstat (limited to 'doc/tools')
| -rw-r--r-- | doc/tools/coqrst/coqdomain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/coqrst/coqdomain.py b/doc/tools/coqrst/coqdomain.py index 84f32e187b..0b94b0d675 100644 --- a/doc/tools/coqrst/coqdomain.py +++ b/doc/tools/coqrst/coqdomain.py @@ -519,7 +519,7 @@ class ProductionObject(CoqObject): row = nodes.inline(classes=['prodn-row']) entry = nodes.inline(classes=['prodn-cell-nonterminal']) if lhs != "": - target_name = 'grammar-token-' + lhs + target_name = 'grammar-token-' + nodes.make_id(lhs) target = nodes.target('', '', ids=[target_name], names=[target_name]) # putting prodn-target on the target node won't appear in the tex file inline = nodes.inline(classes=['prodn-target']) |
