emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Problem with tangling and newlines
@ 2011-07-13 22:31 Sebastien Vauban
  2011-07-15 15:34 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2011-07-13 22:31 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Tangling this:

#+begin_src sh :tangle my-csv2ledger-wrapper.sh :noweb yes
#!/bin/bash
# my-csv2ledger-wrapper.sh -- Convert CSV files to Ledger data

<<load-data>> |\
<<americanize-date>> |\
<<americanize-csv>>

exit 0
#+end_src

now gives:

--8<---------------cut here---------------start------------->8---
#!/bin/bash
# my-csv2ledger-wrapper.sh -- Convert CSV files to Ledger data

cat
 |\
sed -r 's/^([[:digit:]]{2})\/([[:digit:]]{2})\/([[:digit:]]{2})/\2\/\1\/20\3/g' |\
sed -r 's/^([[:digit:]]{2})-([[:digit:]]{2})-([[:digit:]]{4})/\2\/\1\/\3/g'
 |\
sed -r 's/([[:digit:]])\.([[:digit:]]{3})/\1\2/g' |\
sed -r 's/([[:digit:]]),([[:digit:]]{2})/\1.\2/g' |\
sed -r 's/,/./g' |\
sed -r 's/;/,/g'

exit 0
--8<---------------cut here---------------end--------------->8---

which is not executable anymore because the pipe is not ending the line of
commands.

This is quite recent (v7.6?).

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-15 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 22:31 [babel] Problem with tangling and newlines Sebastien Vauban
2011-07-15 15:34 ` Eric Schulte

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