[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [PATCH] orphaned captions and labels
From: |
Sebastian Rose |
Subject: |
Re: [Orgmode] [PATCH] orphaned captions and labels |
Date: |
Thu, 24 Jun 2010 21:18:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi David and Nicolas,
I didn't follow this thread closely, so forgive me if this is another
bug then the one you tried to fix.
David Maus <address@hidden> writes:
> Nicolas Goaziou wrote:
>>Hello,
>
>>This patch corrects the following problem :
>
>>-----------------------------------------
>>#+caption: I'm not removed from export
>>#+label: also-not-removed
>>| A | B |
>>| 1 | 2 |
>>-----------------------------------------
>
>>Since org-handle-comments is only removing comments, #+caption, #+label
>>and friends were left in the export file.
Some still are.
I applied the patch, but my "#+ATTR_HTML:" lines are not removed from
ASCII export if they occur on a line with leading spaces.
This might be true for other backends, too.
Try to export this as ASCII:
=> --->8-------------------------->8-------------------------->8---
* Example
#+ATTR_HTML: I am removed from ASCII export
| THead 1 | THead 2 |
#+ATTR_HTML: I am _NOT_ removed from ASCII export
| THead 1 | THead 2 |
#+CAPTION: removed
#+ATTR_HTML: NOT removed
| THead 1 | THead 2 |
#+CAPTION: removed
#+ATTR_HTML: removed
| THead 1 | THead 2 |
<= ---8<--------------------------8<--------------------------8<---
Leading space make the difference. Somtimes.
Here is the result:
=> --->8----------------------------->8----------------------------->8---
1 Example
~~~~~~~~~~
THead 1 THead 2
#+ATTR_HTML: I am NOT removed from ASCII export
THead 1 THead 2
#+ATTR_HTML: NOT removed
THead 1 THead 2
THead 1 THead 2
<= ---8<-----------------------------8<-----------------------------8<---
Sebastian
- [Orgmode] [PATCH] orphaned captions and labels, Nicolas Goaziou, 2010/06/19
- Re: [Orgmode] [PATCH] orphaned captions and labels, David Maus, 2010/06/24
- Re: [Orgmode] [PATCH] orphaned captions and labels,
Sebastian Rose <=
- Re: [Orgmode] [PATCH] orphaned captions and labels, Sebastian Rose, 2010/06/29
- [Orgmode] [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff, Nicolas Goaziou, 2010/06/30
- [Orgmode] Re: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff, Sebastian Rose, 2010/06/30
- [Orgmode] Re: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff (v.2), Nicolas Goaziou, 2010/06/30
- [Orgmode] Re: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff (v.2), Sebastian Rose, 2010/06/30
- Re: [Orgmode] [PATCH] orphaned captions and labels, Nicolas Goaziou, 2010/06/30