#include "h/mh.h"
#include "h/icalendar.h"
#include "sbr/icalparse.h"
+#include "sbr/base64.h"
static char *unfold (char *, size_t *);
static void destroy_icallex(void);
. {
/* By default, flex will just pass unmatched text. Catch it instead. */
- inform("unexpected input: |%s|\n", icaltext);
+ contentline *clines = vevents.last->contentlines;
+ contentline *cline;
+
+ if (clines && (cline = clines->last)) {
+ if (cline->unexpected == NULL) {
+ cline->unexpected = charstring_create (0);
+ }
+ charstring_append_cstring (cline->unexpected, icaltext);
+ }
}
<INITIAL>