Allow selective pango-markup in tztime-module (#430)

Closes #421
This commit is contained in:
Jonas Große Sundrup 2020-08-31 08:30:59 +02:00 committed by GitHub
parent a3a37da11e
commit 3451a0d9fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,8 +64,7 @@ void print_time(yajl_gen json_gen, char *buffer, const char *title, const char *
char string_time[STRING_SIZE];
if (format_time == NULL) {
strftime(string_time, sizeof(string_time), format, &tm);
maybe_escape_markup(string_time, &outwalk);
outwalk += strftime(buffer, 4096, format, &tm);
} else {
strftime(string_time, sizeof(string_time), format_time, &tm);
placeholder_t placeholders[] = {