emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Prevent creating empty lines with trailing spaces when tangling noweb
Date: Sat, 06 May 2017 09:23:07 +0200	[thread overview]
Message-ID: <87tw4yfnz8.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFyQvY1cLjuEyqc_EhyjV2g67sFwws5wLtaSaPDCmCXhaJv6sg@mail.gmail.com> (Kaushal Modi's message of "Sat, 06 May 2017 06:30:45 +0000")

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Notice that the empty line is created between noweb segments as expected
> because of ":noweb-sep "\\n\\n"". But what was unexpected to me was the
> creation of empty line with spaces inserted to match the indentation.
>
> Is this by design?

I lean towards "yes".

> If it is by design, I would propose to have a new switch called something
> like ":noweb-notrailingspc" (would like a better suggestion for this switch
> name).

I don't think this is necessary. This is but a corner-case. That doesn't
require a dedicated switch.

I'd rather clean every empty line upon tangling, or let the user do it
with `org-babel-post-tangle-hook'.

Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2017-05-06  7:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-06  6:30 Prevent creating empty lines with trailing spaces when tangling noweb Kaushal Modi
2017-05-06  6:54 ` Kaushal Modi
2017-05-06  7:23 ` Nicolas Goaziou [this message]
2017-05-06 12:59   ` Kaushal Modi

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=87tw4yfnz8.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).