Fix bug with protected examples that look like table lines
commit79b84116692a06af2f847d92d85fc98650b7e604
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 7 Jun 2010 03:31:44 +0000 (7 05:31 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 7 Jun 2010 03:53:12 +0000 (7 05:53 +0200)
treeac20d150ee628b26929dbfddd4e322246b731847
parent28babd4dffde5949b2b668b0c9e2867d2ad55a70
Fix bug with protected examples that look like table lines

* lisp/org-exp.el (org-export-remove-special-table-lines): Only fix table
lines that are not protected text.

Giovanni Moretti writes:

> I'm working up a presentation on orgmode for a local club and needed
> to prefix it with a brief emacs overview, and so included this:
>
> #+BEGIN_EXAMPLE
>                      ctrl-P (previous line)
>                           |
>                           |
> Ctrl-A <<<  Ctrl-B <---- o ----> Ctrl-F >>>  Ctrl-E
> Col 1      back char      !       fwd char        EOL
>                           !
>                      ctrl-N (next line)
> #+END_EXAMPLE
>
> :                       ctrl-P (previous line)
> :                            |
> :                            |
> : Ctrl-A <<<  Ctrl-B <---- o ----> Ctrl-F >>>  Ctrl-E
> : Col 1       back char      |       fwd char        EOL
> :                            |
> :                       ctrl-N (next line)
>
> I'm using Orgmode v6.36c and when exporting to HTML (and LaTex
> Beamer), the two lines containing the single vertical bar immediately
> below the "ctrl-P" line in the #+EXAMPLE block vanish, whereas using
> the alternate colon at the beginning of the line notation, the
> rendering is as expected.
>
> Interestingly, enabling the +n option (#+BEGIN_EXAMPLE +n) causes the
> missing lines (lines 2 & 3) to reappear.
lisp/org-exp.el