[docmaker] Replace name' attribute of <a>' with `id'.

* src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
This commit is contained in:
Werner Lemberg 2014-11-27 19:28:48 +01:00
parent 26d699ed84
commit edcf817efa
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2014-11-27 Werner Lemberg <wl@gnu.org>
[docmaker] Replace `name' attribute of `<a>' with `id'.
* src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
2014-11-27 Werner Lemberg <wl@gnu.org>
* src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.

View File

@ -558,8 +558,7 @@ class HtmlFormatter( Formatter ):
# place html anchor if needed
if block.name:
print( '<h4><a name="' + block.name + '">'
+ block.name + '</a></h4>' )
print( '<h4 id="' + block.name + '">' + block.name + '</h4>' )
# dump the block C source lines now
if block.code: