emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steven Delean <steven.delean@adelaide.edu.au>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Bug: HTML not formatted correctly from R source code block [9.3.6 (9.3.6-23-g01ee25-elpaplus @ /home/opdfa/.emacs.d/elpa/org-plus-contrib-20200309/)]
Date: Mon, 9 Mar 2020 14:42:57 +0000	[thread overview]
Message-ID: <20200310011255.2d045f82@t460> (raw)

Hi,

HTML table produced from a source code block (using R code) does not display
because html code is not formatted correctly in the exported html output. The
source code block uses:

#+begin_src R :results output html :exports both
zd <- data.frame(a = 1:3, b = letters[1:3])
knitr:::kable(zd)
#+end_src

Each line in the html table that is produced is broken mid-line where a >
symbol is replaced with a line feed. The html code that is produced shows that
there is a line feed where there should be a > symbol after the ;" for each th
header tag in the table.

<table>
 <thead>
  <tr>
   <th style="text-align:right;"
a </th>
   <th style="text-align:left;"
b </th>
  </tr>
 </thead>
<tbody>
  <tr>
   <td style="text-align:right;"
1 </td>
   <td style="text-align:left;"
a </td>
  </tr>
  <tr>
   <td style="text-align:right;"
2 </td>
   <td style="text-align:left;"
b </td>
  </tr>
  <tr>
   <td style="text-align:right;"
3 </td>
   <td style="text-align:left;"
c </td>
  </tr>
</tbody>
</table>

Thanks for your time,
Best regards,
Steve

Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of
2019-09-17 Package: Org mode version 9.3.6 (9.3.6-23-g01ee25-elpaplus @
/home/opdfa/.emacs.d/elpa/org-plus-contrib-20200309/)

             reply	other threads:[~2020-03-09 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 14:42 Steven Delean [this message]
2020-03-11  0:17 ` Bug: HTML not formatted correctly from R source code block [9.3.6 (9.3.6-23-g01ee25-elpaplus @ /home/opdfa/.emacs.d/elpa/org-plus-contrib-20200309/)] Jack Kamm
2020-03-11  3:07   ` Steven Delean
2020-03-12  1:16     ` Steven Delean
2020-11-01 19:02       ` Jack Kamm

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200310011255.2d045f82@t460 \
    --to=steven.delean@adelaide.edu.au \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).