emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yasushi SHOJI <yasushi.shoji@gmail.com>
To: S Boucher <stbya@yahoo.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Exporting: how to exclude top/bottom hline for tables?
Date: Fri, 24 Sep 2021 11:42:55 +0900	[thread overview]
Message-ID: <CAELBRW+YTQR8KZDFQ3tkmCwCJUD-43u7bLXEbH+50_6K2+dnvQ@mail.gmail.com> (raw)
In-Reply-To: <1523724262.760140.1632336559832@mail.yahoo.com>


On Thu, Sep 23, 2021 at 5:09 AM S Boucher <stbya@yahoo.com> wrote:
> Is there a way to exclude the top and bottom hline of tables during export?

I don't see any option to change.  But you can do:

| (defun my/remove-bottom (borders)
|   (remove-if (lambda (x) (memq x '(bottom top above below))) borders))
| (advice-add 'org-export-table-cell-borders :filter-return #'my/remove-hlines)

tweak the list to change the behaviour.

> When I'm exporting to UTF-8, the top and bottom lines of the tables do not display correctly for me.
> Though the number of chars is correct, the face used by emacs does not match the face used for the rest of the file.

I guess fixing the faces is the right way forward.

      reply	other threads:[~2021-09-24  2:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1523724262.760140.1632336559832.ref@mail.yahoo.com>
2021-09-22 18:49 ` Exporting: how to exclude top/bottom hline for tables? S Boucher
2021-09-24  2:42   ` Yasushi SHOJI [this message]

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:

  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=CAELBRW+YTQR8KZDFQ3tkmCwCJUD-43u7bLXEbH+50_6K2+dnvQ@mail.gmail.com \
    --to=yasushi.shoji@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=stbya@yahoo.com \


* 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


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).