ox-html.el (org-html-table): Append #+attr_html attributes
authorBastien Guerry <bzg@altern.org>
Thu, 14 Feb 2013 10:07:18 +0000 (11:07 +0100)
committerBastien Guerry <bzg@altern.org>
Thu, 14 Feb 2013 10:07:18 +0000 (11:07 +0100)
* ox-html.el (org-html-table): Append #+attr_html attributes.

Thanks to Дядов Васил Стоянов for reporting this and for a preliminary
patch.

lisp/ox-html.el

index aa79978..f5312e7 100644 (file)
@@ -2693,7 +2693,9 @@ contextual information."
                (and (string-match  "<table\\(.*\\)>" table-tag)
                     (match-string 1 table-tag))
                (and label (format " id=\"%s\""
-                                  (org-export-solidify-link-text label)))))))
+                                  (org-export-solidify-link-text label)))
+               (unless (string= attributes "")
+                 (concat " " attributes))))))
        ;; Remove last blank line.
        (setq contents (substring contents 0 -1))
        (format "<table%s>\n%s\n%s\n%s\n</table>"