From: Ruy Exel <ruyexel@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-mode gets confused with column widths when 'time-stamp-custom-formats' are applied.
Date: Tue, 14 Nov 2017 10:02:17 -0200 [thread overview]
Message-ID: <CAB8Wf+-B053Um=+7CQo+af64gTWVUoxY58m4ULesO-8MaD=7XA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 809 bytes --]
Consider the table below:
| Name | Date of Birth |
|-------+------------------|
| John | <1978-11-14 Tue> |
| Peter | <1970-11-14 Sat> |
|-------+------------------|
Suppose we want to format time stamps differently, such as with the
following elisp commands:
(setq org-time-stamp-custom-formats (quote ("<%d %b %y>" . "<%m/%d/%y %a
%H:%M>")))
(org-toggle-time-stamp-overlays)
After realigning the table you get
| Name | Date of Birth |
|-------+------------------|
| John | <14 Nov 1978> |
| Peter | <14 Nov 1970> |
|-------+------------------|
which is wrong because column widths are not uniform. The reason, I
suppose, is that when computing column widths, org-mode ignores the fact
that the change of time stamps may have altered the length of the printed
string.
Best wishes,
Ruy Exel
[-- Attachment #2: Type: text/html, Size: 1172 bytes --]
next reply other threads:[~2017-11-14 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 12:02 Ruy Exel [this message]
2017-11-15 17:15 ` org-mode gets confused with column widths when 'time-stamp-custom-formats' are applied Nicolas Goaziou
2017-11-15 19:10 ` Ruy Exel
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='CAB8Wf+-B053Um=+7CQo+af64gTWVUoxY58m4ULesO-8MaD=7XA@mail.gmail.com' \
--to=ruyexel@gmail.com \
--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).