Subject: bug#12018: closed (Re: bug#12018: 24.1.50; Calendar HTML export breaks with no holidays in month)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 01 Aug 2012 07:25:02 +0000

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 [email-masked].

-- 
12018: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12018
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#12018: 24.1.50; Calendar HTML export breaks with no holidays in month
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 01 Aug 2012 03:16:34 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks; applied.

Subject: 24.1.50; Calendar HTML export breaks with no holidays in month
From: Rupert Swarbrick <[email-masked]>
To: [email-masked]
Date: Sat, 21 Jul 2012 12:09:36 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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