On Thu, 5 Mar 2015, Charles C. Berry wrote: > On Thu, 5 Mar 2015, Richard Stanton wrote: > >> I’m experimenting with tangling files in org-mode, and have found >> that certain files cause org-babel-tangle to ie with an error >> (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here’s a >> small example: > >> >> ———————————— >> >> * Sample code >> >> #+BEGIN_SRC makefile :tangle makefile-main >> circle: >> @gfortran -c circle.f90 >> >> main: circle >> @gfortran -c main.f90 >> @gfortran circle.o main.o -o main >> >> clean: >> @rm -f *.o main >> #+END_SRC >> >> Run this block to tangle out the new files. >> >> #+BEGIN_SRC emacs-lisp >> (org-babel-tangle) >> #+END_SRC >> >> #+RESULTS: >> | makefile-main | >> >> In this block I use this header: >> #+BEGIN_EXAMPLE >> #+BEGIN_SRC sh :results raw >> #+END_EXAMPLE >> > > [rest deleted] > > === > > #+BEGIN_EXAMPLE > ,#+BEGIN_SRC sh :results raw #+END_EXAMPLE > > will work. The comma is stripped on export. > > If you use org-edit-src (C-c C-c) on your original example block, it > will format it in that way automagically. Whoops! Make that =C-c ' C-c '= or (org-edit-src) followed by (org-edit-src-exit). Chuck