GNU bug report logs - #12018
24.1.50; Calendar HTML export breaks with no holidays in month

Previous Next

Package: emacs;

Reported by: Rupert Swarbrick <rswarbrick <at> gmail.com>

Date: Sat, 21 Jul 2012 21:17:05 UTC

Severity: normal

Tags: patch

Found in version 24.1.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Rupert Swarbrick <rswarbrick <at> gmail.com>
Subject: bug#12018: closed (Re: bug#12018: 24.1.50; Calendar HTML export
 breaks with no holidays in month)
Date: Wed, 01 Aug 2012 07:25:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#12018: 24.1.50; Calendar HTML export breaks with no holidays in month

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12018 <at> debbugs.gnu.org.

-- 
12018: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12018
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 12018-done <at> debbugs.gnu.org
Subject: Re: bug#12018: 24.1.50;
	Calendar HTML export breaks with no holidays in month
Date: Wed, 01 Aug 2012 03:16:34 -0400
Thanks; applied.

[Message part 3 (message/rfc822, inline)]
From: Rupert Swarbrick <rswarbrick <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50; Calendar HTML export breaks with no holidays in month
Date: Sat, 21 Jul 2012 12:09:36 +0100
[Message part 4 (text/plain, inline)]
Calling cal-html-cursor-month from a *Calendar* buffer using H-m
triggers an error in cal-html-insert-agenda-days (in
lisp/calendar/cal-html.el) if there are no holidays in the given
month. Since this is true for August, I've just triggered it!

The problem is the

    (and holiday-list diary-list "<BR>\n")

(line 399 in current trunk) inside an insert. (insert NIL) is not
ok. Changing the line to

    (if (and holiday-list diary-list) "<BR>\n" "")

Fixes the issue.

Thanks,

Rupert
[Message part 5 (application/pgp-signature, inline)]

This bug report was last modified 13 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.