فهرست منبع

HTML export: Remove the name attribute from anchors that do not need it.

Carsten Dominik 16 سال پیش
والد
کامیت
642620ebb3
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-exp.el

+ 2 - 0
lisp/ChangeLog

@@ -4,6 +4,8 @@
 	of the <img> tag.
 	(org-export-format-source-code): Surround example by empty lines,
 	to make sure it will not be inside a paragraph.
+	(org-export-as-html): Remove the name attribute from anchors that
+	do not need it.
 
 	* org.el (org-ido-switchb): New function.
 

+ 1 - 1
lisp/org-exp.el

@@ -3281,7 +3281,7 @@ lang=\"%s\" xml:lang=\"%s\">
 	     ((match-end 2)
 	      (setq line (replace-match
 			  (format
-			   "@<a name=\"%s\" id=\"%s\">@</a>"
+			   "@<a id=\"%s\">@</a>"
 			   (org-solidify-link-text (match-string 1 line))
 			   (org-solidify-link-text (match-string 1 line)))
 			  t t line)))