From: Fletcher T. Penney Date: Wed, 17 Oct 2018 23:44:58 +0000 (-0400) Subject: FIXED: Fix handling of hebrew language option X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cb380c5015fc4bfbcb3215ff365c62eeec99204;p=multimarkdown FIXED: Fix handling of hebrew language option --- diff --git a/Sources/libMultiMarkdown/epub.c b/Sources/libMultiMarkdown/epub.c index 441c8bc..38397c1 100644 --- a/Sources/libMultiMarkdown/epub.c +++ b/Sources/libMultiMarkdown/epub.c @@ -194,6 +194,10 @@ char * epub_package_document(scratch_pad * scratch) { print_const("sv\n"); break; + case LC_HE: + print_const("he\n"); + break; + default: print_const("en\n"); } diff --git a/Sources/libMultiMarkdown/html.c b/Sources/libMultiMarkdown/html.c index 410b928..024d7cd 100644 --- a/Sources/libMultiMarkdown/html.c +++ b/Sources/libMultiMarkdown/html.c @@ -2286,6 +2286,10 @@ void mmd_start_complete_html(DString * out, const char * source, scratch_pad * s print_const(" lang=\"sv\""); break; + case LC_HE: + print_const(" lang=\"he\""); + break; + default: print_const(" lang=\"en\""); } diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index ffd3d03..3989726 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -1687,6 +1687,9 @@ void process_metadata_stack(mmd_engine * e, scratch_pad * scratch) { } else if (strcmp(temp_char, "fr") == 0) { scratch->language = LC_FR; scratch->quotes_lang = FRENCH; + } else if (strcmp(temp_char, "he") == 0) { + scratch->language = LC_HE; + scratch->quotes_lang = ENGLISH; } else if (strcmp(temp_char, "nl") == 0) { scratch->language = LC_NL; scratch->quotes_lang = DUTCH;