special case for ' master
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Fri, 16 Oct 2026 08:50:23 +0000 (10:50 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Fri, 16 Oct 2026 08:50:23 +0000 (10:50 +0200)
html2txt.c

index 614ed045e7b891dd51419b5bf95bb265ddff6469..4a7bf7d5efb8c15a4bc31d59ffb10ba0521be910 100644 (file)
@@ -145,6 +145,8 @@ int main (int argc, char *argv[])
                     glyph = out;
                     pt++;
                 }
+                /* special for #39 */
+                if (out[0] == 0x39) out[0] = '\'';
             } else {
                 pt += check_html_element (pt + 1, &glyph);
             }