Re: planner-diary entries manipulation
Michael Olson <[email protected]> Wed, 09 Aug 2006 00:05:08 -0400
| Newsgroups | gmane.emacs.wiki.general,gmane.emacs.planner.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1571075234== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable "Sebastian P. Luque" <[email protected]> writes: > There are some entries in my ~/.diary that look like this: > > &%%(let ((dayname (calendar-day-of-week date))) > (memq dayname '(1 2 3 4 5))) 08:00 | 09:00 | Some activity > 09:00 | 12:30 | Some activity > 14:00 | 14:40 | Some activity > > So that when they're included in day pages, they retain the leading space. > This ruins their translation of the section defined by > 'planner-diary-string' into a table; i.e. without the leading space they > would normally be published as a table with the schedule defined by the > entries in the diary. I'm not sure that the leading space is causing the problem. Just in case, I've committed a change to the Muse development source that strips initial and trailing whitespace from table fields. My best guess is that the problem is being caused by Planner's default behavior of publishing Diary sections as if they were <verse> regions (in order to preserve line breaks). Since you're using table markup, you probably don't want that to happen. Just customize planner-section-tagnames and remove the ("Diary" . "diary-section") line to make Planner do nothing special for that section. =2D-=20 Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.n= et /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFE2V72+1Ho2POo0xkRAm4xAJ9h4yM6ysbkbkIRTfmSmw3V4LVxXQCfeKEa j6lGj+QfHdphPh7ssWf18Ls= =ubpA -----END PGP SIGNATURE----- --=-=-=-- --===============1571075234== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ emacs-wiki-discuss mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss --===============1571075234==--