org-duration: Tolerate leading and trailing blanks in durations
commitadd0be30935412d37934d9ac4fa7315da17ced58
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 14 Feb 2017 08:58:26 +0000 (14 09:58 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 14 Feb 2017 08:58:26 +0000 (14 09:58 +0100)
tree7253d39848974333ee78d20b067ae2df62b24221
parent2e3270984332013b8df22d2995bdeba256534a63
org-duration: Tolerate leading and trailing blanks in durations

* lisp/org-duration.el (org-duration--h:mm-re):
(org-duration--h:mm:ss-re): Tolerate leading in trailing blanks.
Change into a defconst.
(org-duration-set-regexps): Tolerate leading in trailing blanks.

Reported-by: Detlef Steuer <steuer@unibw-hamburg.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112111>
lisp/org-duration.el