emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Extra empty line at the top of the page when tangling.


From: Ivanov Dmitry
Subject: [O] Extra empty line at the top of the page when tangling.
Date: Wed, 22 Oct 2014 08:53:44 +0400

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]