From 4c506f05d78d634375a643aa7584c6d03ebdbbae Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sat, 4 Mar 2017 12:37:22 -0500 Subject: [PATCH] FIXED: Fix non-breaking space in ODF --- Sources/libMultiMarkdown/odf.c | 2 +- tests/MMD6Tests/Escapes.fodt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/libMultiMarkdown/odf.c b/Sources/libMultiMarkdown/odf.c index 3385a68..6d9a898 100644 --- a/Sources/libMultiMarkdown/odf.c +++ b/Sources/libMultiMarkdown/odf.c @@ -785,7 +785,7 @@ void mmd_export_token_odf(DString * out, const char * source, token * t, scratch case ESCAPED_CHARACTER: if (!(scratch->extensions & EXT_COMPATIBILITY) && (source[t->start + 1] == ' ')) { - print_const(" "); + print_const(" "); // This is a non-breaking space character } else { mmd_print_char_odf(out, source[t->start + 1]); } diff --git a/tests/MMD6Tests/Escapes.fodt b/tests/MMD6Tests/Escapes.fodt index 9ec4b8a..5753e09 100644 --- a/tests/MMD6Tests/Escapes.fodt +++ b/tests/MMD6Tests/Escapes.fodt @@ -357,7 +357,7 @@ `foo` -foo bar +foo bar -- 2.40.0