On Tue, Jan 5, 2021 at 1:15 AM Kyle Meyer <[email protected]> wrote:
>
>
> Exporting that table to html, I see "Before" on release_9.4.4, maint
> (273391c97), and master (00b4de329).
>
> You're able to trigger the issue with a vanilla configuration on maint?
>
Hi Kyle,
Thanks for checking. Indeed ox-html export does not show that issue.
But the weekly cron (and even local) ox-hugo exports started showing this
issue after the update to table.el table detection change that happened a
few weeks ago.
I'll investigate why only ox-hugo is showing this issue.. I am simply
calling the table.el related function from ox-html:
=====
(defun org-blackfriday-table (table contents info)
"Transcode TABLE element into Blackfriday Markdown format.
CONTENTS is contents of the table. INFO is a plist holding
contextual information."
;; (message "[ox-bf-table DBG] In contents: %s" contents)
(if (eq (org-element-property :type table) 'table.el)
;; "table.el" table. Convert it using appropriate tools.
(let ((tbl (org-html-table--table.el-table table info)))
(message "%S" table) ; just added this for debug
(message "%S" tbl) ; just added this for debug
=====
and I am getting only partial table in the "tbl" variable
=====
(table (:begin 1860 :end 2062 :type table\.el :tblfm nil :contents-begin
nil :contents-end nil :value "+----------+----------+----------+
| Header 1 | Header 2 | Header 3 |
+----------+----------+----------+
| a | b | c |
+----------+----------+----------+
| d | e | f |
+----------+----------+----------+" :post-blank 1 :post-affiliated 1860
:parent (section (:begin 1703 :end 2062 :contents-begin 1703 :contents-end
2062 :post-blank 1 :post-affiliated 1703 :parent (org-data nil #2))
(special-block (:type "description" :begin 1703 :end 1783 :contents-begin
1723 :contents-end 1765 :post-blank 1 :post-affiliated 1703 :parent #2)
(paragraph (:begin 1723 :end 1765 :contents-begin 1723 :contents-end 1765
:post-blank 1 :post-affiliated 1723 :parent #3) #("Support tables written
in table.el format
" 0 42 (:parent #4)))) (paragraph (:begin 1783 :end 1860 :contents-begin
1783 :contents-end 1859 :post-blank 1 :post-affiliated 1783 :parent #2)
(verbatim (:value "ox-hugo" :begin 1783 :end 1793 :post-blank 1 :parent
#3)) #("Issue #" 0 7 (:parent #3)) (link (:type "https" :path "//
github.com/kaushalmodi/ox-hugo/issues/374" :format bracket :raw-link "
https://github.com/kaushalmodi/ox-hugo/issues/374" :application nil
:search-option nil :begin 1800 :end 1858 :contents-begin 1853 :contents-end
1856 :post-blank 0 :parent #3) #("374" 0 3 (:parent #4))) #("
" 0 1 (:parent #3))) #0)))
"<!-- This HTML table template is generated by emacs 28.0.50 -->
<table border=\"1\">
<tr>
<td align=\"left\" valign=\"top\">
Header 1
</td>
<td align=\"left\" valign=\"top\">
Header 2
</td>
<td align=\"left\" valign=\"top\">
Header 3
</td>
</tr>
</table>"
=====
I'll keep looking..