From: Michael Dauer <mick.dauer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: misaligned tab and spaces in src block
Date: Mon, 24 May 2021 18:07:48 +0200 [thread overview]
Message-ID: <CAP7OBx+Ac98rhRG4L1CLgomdKYXc0sw9UTbQLZDOm89sPCoxdQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 885 bytes --]
Hi,
#+begin_src elisp :results output
(aaa
bbb (
#x09#x09#x09ccc))
ccc
#+end_src
looks like this in the editor
(aaa
bbb (
ccc))
ccc
Line 1-3 were indented automatically by pressing Tab. In line 4 I inserted
6 spaces manually. This is what I would expect to find in line 3 too. But
at my surprise there are 3 tab chars in line 3. Line 2 was indented
automatically with 1 space.
1. So why is line 3 indented with 3 tabs instead of 6 spaces?
2. How can I prevent this?
3. Why does a tab have a width between 1 and 2 spaces?
4. How can I prevent this misalignment?
org-block face has fixed-pitch.
Org mode version 9.4.6 (9.4.6-gcf30f7
(setq-default tab-width 2)
(setq org-src-fontify-natively t
org-src-window-setup 'current-window
org-src-strip-leading-and-trailing-blank-lines t
org-src-preserve-indentation t
org-src-tab-acts-natively t)
Thanks,
Michael
[-- Attachment #2: Type: text/html, Size: 1206 bytes --]
next reply other threads:[~2021-05-24 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 16:07 Michael Dauer [this message]
2021-05-25 1:51 ` misaligned tab and spaces in src block Tim Cross
2021-06-17 15:40 ` Michael Dauer
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=CAP7OBx+Ac98rhRG4L1CLgomdKYXc0sw9UTbQLZDOm89sPCoxdQ@mail.gmail.com \
--to=mick.dauer@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).