From: Kodi Arfer <kodi@arfer.net>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ox-html: Restore wrongly omitted table attributes under HTML5.
Date: Sat, 29 Jun 2013 11:06:44 -0400 [thread overview]
Message-ID: <51CEF804.8070608@arfer.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 0001-ox-html-Restore-wrongly-omitted-table-attributes-und.patch --]
[-- Type: text/x-patch, Size: 1375 bytes --]
From edd97671641e28c3e240efe6ea8fa8d77b4b7eae Mon Sep 17 00:00:00 2001
From: Kodi Arfer <git@arfer.net>
Date: Sat, 29 Jun 2013 10:43:07 -0400
Subject: [PATCH] ox-html: Restore wrongly omitted table attributes under
HTML5.
* lisp/ox-html.el (org-html-table): For HTML5,
omit :html-table-attributes but not :id or :attr_html.
TINYCHANGE
---
lisp/ox-html.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 4a2b6ec..bcf86ee 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -3163,12 +3163,12 @@ contextual information."
(number (org-export-get-ordinal
table info nil 'org-html--has-caption-p))
(attributes
- (if (org-html-html5-p info) ""
- (org-html--make-attribute-string
- (org-combine-plists
- (and label (list :id (org-export-solidify-link-text label)))
- (plist-get info :html-table-attributes)
- (org-export-read-attribute :attr_html table)))))
+ (org-html--make-attribute-string
+ (org-combine-plists
+ (and label (list :id (org-export-solidify-link-text label)))
+ (unless (org-html-html5-p info)
+ (plist-get info :html-table-attributes))
+ (org-export-read-attribute :attr_html table))))
(alignspec
(if (and (boundp 'org-html-format-table-no-css)
org-html-format-table-no-css)
--
1.8.1.2
next reply other threads:[~2013-06-29 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-29 15:06 Kodi Arfer [this message]
2013-06-29 22:37 ` [PATCH] ox-html: Restore wrongly omitted table attributes under HTML5 Nicolas Goaziou
2013-06-29 23:30 ` Kodi Arfer
2013-06-30 7:35 ` Nicolas Goaziou
2013-06-30 20:14 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CEF804.8070608@arfer.net \
--to=kodi@arfer.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.