From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: Extra empty line at the top of the page when tangling. Date: Wed, 22 Oct 2014 08:26:59 +0200 Message-ID: <878uk8k4b0.fsf@tanger.home> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgpO0-00059f-RH for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 02:27:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgpNv-0006F4-D5 for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 02:27:08 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:47856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgpNv-0006Ey-5Y for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 02:27:03 -0400 Received: by mail-wg0-f52.google.com with SMTP id a1so2857612wgh.23 for ; Tue, 21 Oct 2014 23:27:01 -0700 (PDT) In-Reply-To: (Ivanov Dmitry's message of "Wed, 22 Oct 2014 08:53:44 +0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ivanov Dmitry writes: Hi, > Code: > > #+BABEL: :cache yes :tangle yes :noweb yes > > #+NAME: top_block > #+begin_src perl :tangle "test.pl" :noweb tangle From=20(info "(org) padline"): > 14.8.2.10 =E2=80=98:padline=E2=80=99 > .................... >=20 > Control in insertion of padding lines around code block bodies in > tangled code files. The default value is =E2=80=98yes=E2=80=99 which res= ults in > insertion of newlines before and after each tangled code block. The > following arguments are accepted. >=20 > =E2=80=A2 =E2=80=98yes=E2=80=99 Insert newlines before and after each = code block body in > tangled code files. > =E2=80=A2 =E2=80=98no=E2=80=99 Do not insert any newline padding in ta= ngled output. You can use the following block declaration: #+begin_src perl :tangle "test.pl" :noweb tangle :padline no > =C2=A0 #!/usr/bin/perl > > =C2=A0 use strict; > =C2=A0 use warnings; > > =C2=A0 open(my $fh, "<", "test.txt") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or die "cannot open < file name: $!"; > =C2=A0 <> > =C2=A0 close($fh); > #+end_src > > #+NAME: output-all > #+begin_src perl > =C2=A0 while (my $line =3D <$fh>) { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 print $line; > =C2=A0 } > #+end_src > > Outputs a perl file, where the 1-st line is blank. What should I do to re= move it? =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUR04zAAoJEBNzVHcrZRiU1+wP/2Lq/alRC4S43P3Cshvv9nTT qiZV3RbbO/ZGhTcJj6MpdiNjQMerP/G48Rj6dXhdEyBvHrhZSOvgF8GLJYtBX28l p0sVk9/6bnGEXYu0A3JqB3RUbjZX9+O3f8+5xeWeNz4mbCSjJSuw0+IWmnBTLWCJ BH1H4FqW4LtAOUfZqqN9+Jx0QieeyQgs3waGzz5fOF4sQm+CrXuclUX0p/GH6sPS cf/Q06eBJEEpbF/pQU7lO/H76DxMm+3xAPSusqsajOgQD/Dpb9T3anu0ypGm/1TW bADPILe7fEV0A16g0Z6gDjoCu6MKfSXLtLsJCLzdGS1JiTOf6sLRNy4ZLQSoNET2 AfRbXRW5f0A2MI3pCtSU3/VqVI/7kVDFwThqTmwdILqRBzNrLwN5GoZzzfz9oqQU 9UQ3XP5RUjI442zkb/itj4P9S1hYvuYmXead7zmuleKSAokHm50TVgQlRuxpbq/7 Cc2wRWKbCZBRe0XCDtNEKefdAI5WVLI/f57vVi07sJuMzzCLHiA5CkZxBHvRKHIG R8joT3bYsPUyEZKBuv8cCrRnDOZ8626y3uTI8hxgXH4fZ15FMH/+fyo6QL9e9t3b 22thfuMXIUW0LkjOC45nuCZA59crldA9Cii9MLd7muDgpq6HltREmOKYHo6kYv4R g2ToQ/dAc9IdpYzaqHqO =f0/O -----END PGP SIGNATURE----- --=-=-=--