|
From: | Jambunathan K |
Subject: | Re: [O] New exporter and dates in tables |
Date: | Mon, 15 Apr 2013 09:28:32 +0530 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Nicolas You may want to extract the below function as a useful API. You can then plug that in into `org-odt--standalone-link-p' and it's counterpart in ox-html.el. I am not closely tracking changes in ox-html.el, so things might have moved since. Jambunathan K. Nicolas Goaziou <address@hidden> writes: > + (lambda (ts) > + ;; Return a non-nil value when TS is a timestamp object > + ;; in a paragraph with only timestamps and whitespaces. > + (let ((parent (org-export-get-parent-element ts))) > + (when (memq (org-element-type parent) '(paragraph verse-block)) > + (not > + (org-element-map parent > + (cons 'plain-text > + (remq 'timestamp org-element-all-objects)) > + (lambda (obj) > + (or (not (stringp obj)) (org-string-nw-p obj))) > + options t)))))
[Prev in Thread] | Current Thread | [Next in Thread] |