[Orgmode] [Babel] Small problem with tangling

2010-10-13 Thread Sébastien Vauban
Hello,

I just tried this:

--8---cut here---start-8---
Creating the following =.reg= file:

#+begin_src sh :tangle org-protocol-setup.reg
REGEDIT4

[HKEY_CLASSES_ROOT\org-protocol]
@=URL:Org Protocol
URL Protocol=
[HKEY_CLASSES_ROOT\org-protocol\shell]
[HKEY_CLASSES_ROOT\org-protocol\shell\open]
[HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
@=\C:\\Programme\\Emacs\\emacs\\bin\\emacsclientw.exe\ \%1\
#+end_src

and double-click it.
--8---cut here---end---8---

and tangled it.

But, when clicking on the reg file, it fails... saying it is not a valid reg
file.

I've found the reason to be an empty first line that's always inserted at the
beginning of the file. Removing it cures the problem.

What should I do to get rid of that first *empty* line?

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Babel] Small problem with tangling

2010-10-13 Thread Eric Schulte
The following inhibits the insertion of blank lines on tangling.

  (setq org-babel-tangle-pad-newline nil)

Best -- Eric

Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hello,

 I just tried this:

 Creating the following =.reg= file:

 #+begin_src sh :tangle org-protocol-setup.reg
 REGEDIT4

 [HKEY_CLASSES_ROOT\org-protocol]
 @=URL:Org Protocol
 URL Protocol=
 [HKEY_CLASSES_ROOT\org-protocol\shell]
 [HKEY_CLASSES_ROOT\org-protocol\shell\open]
 [HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
 @=\C:\\Programme\\Emacs\\emacs\\bin\\emacsclientw.exe\ \%1\
 #+end_src

 and double-click it.

 and tangled it.

 But, when clicking on the reg file, it fails... saying it is not a valid reg
 file.

 I've found the reason to be an empty first line that's always inserted at the
 beginning of the file. Removing it cures the problem.

 What should I do to get rid of that first *empty* line?

 Best regards,
   Seb

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode