Kaynağa Gözat

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

This reverts commit 642620ebb33a79768cff0ce9a0f425f8e972b2c2.
Carsten Dominik 16 yıl önce
ebeveyn
işleme
c668817bf3
2 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 0 2
      lisp/ChangeLog
  2. 1 1
      lisp/org-exp.el

+ 0 - 2
lisp/ChangeLog

@@ -4,8 +4,6 @@
 	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 id=\"%s\">@</a>"
+			   "@<a name=\"%s\" id=\"%s\">@</a>"
 			   (org-solidify-link-text (match-string 1 line))
 			   (org-solidify-link-text (match-string 1 line)))
 			  t t line)))