Discussion:
[Docutils-users] hyphen handling changed in references?
Alan G Isaac
2016-02-07 18:55:21 UTC
Permalink
Fine Header
------------

Am I wrong that I used to be able to refer to the
`fine-header`_ (with hyphen) example above,
and not just as `fine header`_ (no hyphen)?
Memory glitch?

Thanks.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Guenter Milde
2016-02-13 20:36:48 UTC
Permalink
Post by Alan G Isaac
Fine Header
------------
Am I wrong that I used to be able to refer to the
`fine-header`_ (with hyphen) example above,
and not just as `fine header`_ (no hyphen)?
Memory glitch?
Why didn't you just try?

Running your example, I get:

/tmp/ss.rst:4: (ERROR/3) Unknown target name: "fine-header".


However, the HTML anchor uses the replacements as documented somewhere which
include spaces-to-hypens. Therefore, you get

<div class="document" id="fine-header">
<h1 class="title">Fine Header</h1>

and if you want to refer to this place without using rst
(e.g. inter-document links), you must use this, like in
the link to the section "syntax highlight":

http://docutils.sourceforge.net/docs/user/config.html#syntax-highlight


Günter

Loading...