Re: [O] a line in BEGIN_SRC/END_SRC block disappeared when publishing

2012-06-01 Thread Liang Wang
Hi Bastien,

On Fri, Jun 1, 2012 at 9:01 PM, Bastien  wrote:
> Hi Liang,
>
> Liang Wang  writes:
>
>> #+BEGIN_SRC emacs-lisp
>>   (eval-after-load 'yasnippet
>>     '(yas/define-snippets
>>      'org-mode
>>      '(("elisp" "#+BEGIN_SRC emacs-lisp
>>     $0
>>   ,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"
>> #+END_SRC
>
> Why not this
>
> #+BEGIN_SRC emacs-lisp
>  (eval-after-load 'yasnippet
>    '(yas/define-snippets
>     'org-mode
>     '(("elisp" "#+BEGIN_SRC emacs-lisp
>    $0\n#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"
> #+END_SRC
>

Thanks.  This one works.

Liang.



Re: [O] a line in BEGIN_SRC/END_SRC block disappeared when publishing

2012-06-01 Thread Bastien
Hi Liang,

Liang Wang  writes:

> #+BEGIN_SRC emacs-lisp
>   (eval-after-load 'yasnippet
> '(yas/define-snippets
>  'org-mode
>  '(("elisp" "#+BEGIN_SRC emacs-lisp
> $0
>   ,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"
> #+END_SRC

Why not this

#+BEGIN_SRC emacs-lisp
  (eval-after-load 'yasnippet
'(yas/define-snippets
 'org-mode
 '(("elisp" "#+BEGIN_SRC emacs-lisp
$0\n#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"
#+END_SRC

?

-- 
 Bastien



[O] a line in BEGIN_SRC/END_SRC block disappeared when publishing

2012-05-30 Thread Liang Wang
Hi,

When I publish an article with code block as following, the last line
disappeared.  From manual, the comma before # is the way to quote #.
But it seems that it doesn't work.  Is it a bug?  I use 7.8.11 release
tarball.

#+BEGIN_SRC emacs-lisp
  (eval-after-load 'yasnippet
'(yas/define-snippets
 'org-mode
 '(("elisp" "#+BEGIN_SRC emacs-lisp
$0
  ,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"
#+END_SRC

Thanks,
Liang.