[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: |
Tue, 29 Jun 2010 14:55:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Sebastian Rose <address@hidden> writes:
> 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
What's the status of this?
Sebastian
Re: [Orgmode] [PATCH] orphaned captions and labels, Nicolas Goaziou, 2010/06/30