Allow datetree to find years with trailing whitespace.
commit8f2a921cf922b37d21f87fc06af406a25b2101a0
authorMatt Lundin <mdl@imapmail.org>
Fri, 25 May 2012 18:16:26 +0000 (25 13:16 -0500)
committerBastien Guerry <bzg@altern.org>
Fri, 25 May 2012 21:22:09 +0000 (25 23:22 +0200)
tree533cdb3c4b547445bed0adaff59bfeafe5732971
parentb00eeb4d5a9b2f435d72f2b0b82c17c607ea4a1e
Allow datetree to find years with trailing whitespace.

* lisp/org-datetree.el: Fix regexp to allow datetree to find headings
  with trailing whitespace.  This fixes a bug in which an existing
  datetree heading (e.g., "* 2012 ") would not be found by
  org-datetree-find-year-create if it had trailing whitespace.  This can
  cause problems, for instance, if one is using column view on the date
  tree, since editing subheadings with column view adds whitespace at
  the end of the top heading.
lisp/org-datetree.el