From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kodi Arfer Subject: [PATCH] ox-html: Restore wrongly omitted table attributes under HTML5. Date: Sat, 29 Jun 2013 11:06:44 -0400 Message-ID: <51CEF804.8070608@arfer.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090700040402020407050606" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uswjh-0007am-5A for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 11:06:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uswje-00031o-3c for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 11:06:49 -0400 Received: from mxout-08.mxes.net ([216.86.168.183]:10050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uswjd-00031a-W2 for emacs-orgmode@gnu.org; Sat, 29 Jun 2013 11:06:46 -0400 Received: from [192.168.1.103] (unknown [76.117.57.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id E0D50509B5 for ; Sat, 29 Jun 2013 11:06:44 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------090700040402020407050606 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit --------------090700040402020407050606 Content-Type: text/x-patch; name="0001-ox-html-Restore-wrongly-omitted-table-attributes-und.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-ox-html-Restore-wrongly-omitted-table-attributes-und.pa"; filename*1="tch" >From edd97671641e28c3e240efe6ea8fa8d77b4b7eae Mon Sep 17 00:00:00 2001 From: Kodi Arfer 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 --------------090700040402020407050606--