emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behavior of org-element-object-lex


From: Damien Cassou
Subject: Re: Weird behavior of org-element-object-lex
Date: Thu, 20 Oct 2022 15:41:47 +0200

Ihor Radchenko <yantar92@posteo.net> writes:
> Damien Cassou <damien@cassou.me> writes:
>>   (defun ox-linuxmag--item (item contents info)
>> ...
>> The reason `ox-linuxmag--item` has to parse ITEM again is because
>> CONTENTS contains "<text:p text:style-name="Normal">item 1 ;</text:p>"
>> which misses the initial dash "-" character: i.e., I would like "- item
>> 1 ;" in the paragraph instead.
>
> Just use ITEM.
> You can access the contents of ITEM with org-element-contents.
> If you just need to append the bullet, use (org-element-property :bullet item)

I don't understand your solution. `org-element-contents` returns a
paragraph element. What should I do with it? I can't just export it
because that would result in a '<text:p text:style-name="Normal">item
1 ;</text:p>' string which misses the initial "- ".

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]