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

This commit is contained in:
Carsten Dominik 2008-12-19 12:50:36 +01:00
parent 1b655ff4af
commit 642620ebb3
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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)))