shithub: freetype+ttf2subf

Download patch

ref: edcf817efa9121d7b3cf29c124701c5d7d6f78f2
parent: 26d699ed84898b09b65bb30a0a64aef535d7edaa
author: Werner Lemberg <[email protected]>
date: Thu Nov 27 14:28:48 EST 2014

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

* src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-11-27  Werner Lemberg  <[email protected]>
 
+	[docmaker] Replace `name' attribute of `<a>' with `id'.
+
+	* src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
+
+2014-11-27  Werner Lemberg  <[email protected]>
+
 	* src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
 
 	For `Index' and `TOC' links, we now simply use the `text-align' CSS
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -558,8 +558,7 @@
 
         # 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: