From ab3fdd70430912751a9c5d00083a41f3251b6758 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 15 Apr 2017 12:56:29 +0200 Subject: [PATCH] browser compatibility: use numeric entity for ' ' is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it. --- stagit-index.c | 2 +- stagit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stagit-index.c b/stagit-index.c index 067dc30..0a72b33 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -47,7 +47,7 @@ xmlencode(FILE *fp, const char *s, size_t len) switch(*s) { case '<': fputs("<", fp); break; case '>': fputs(">", fp); break; - case '\'': fputs("'", fp); break; + case '\'': fputs("'" , fp); break; case '&': fputs("&", fp); break; case '"': fputs(""", fp); break; default: fputc(*s, fp); diff --git a/stagit.c b/stagit.c index 089f15b..d9f6604 100644 --- a/stagit.c +++ b/stagit.c @@ -248,7 +248,7 @@ xmlencode(FILE *fp, const char *s, size_t len) switch(*s) { case '<': fputs("<", fp); break; case '>': fputs(">", fp); break; - case '\'': fputs("'", fp); break; + case '\'': fputs("'", fp); break; case '&': fputs("&", fp); break; case '"': fputs(""", fp); break; default: fputc(*s, fp);