emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Extra empty line at the top of the page when tangling.
@ 2014-10-22  4:53 Ivanov Dmitry
  2014-10-22  6:26 ` Daimrod
  0 siblings, 1 reply; 2+ messages in thread
From: Ivanov Dmitry @ 2014-10-22  4:53 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

Code:

#+BABEL: :cache yes :tangle yes :noweb yes

#+NAME: top_block
#+begin_src perl :tangle "test.pl" :noweb tangle
  #!/usr/bin/perl

  use strict;
  use warnings;

  open(my $fh, "<", "test.txt")
      or die "cannot open < file name: $!";
  <<output-all>>
  close($fh);
#+end_src

#+NAME: output-all
#+begin_src perl
  while (my $line = <$fh>) {
      print $line;
  }
#+end_src

Outputs a perl file, where the 1-st line is blank. What should I do to
remove it?

[-- Attachment #2: Type: text/html, Size: 687 bytes --]

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

end of thread, other threads:[~2014-10-22  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-22  4:53 Extra empty line at the top of the page when tangling Ivanov Dmitry
2014-10-22  6:26 ` Daimrod

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