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 <n.goaz...@gmail.com> 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)))))

Reply via email to