From 6d20ed0590618b387d4cf6170b1339bf164ce9e3 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 11 May 2019 14:01:49 +0200 Subject: Special handling of the UTF8 nbsp sequence The UTF8 nbsp sequence 0xc2 0xa0 is not seen as a whitespace sequence and not handled properly. This can lead to: ``` warning: found tag without matching ``` when we have e.g. ```e.g. `linux`
``` where the space between the `.` and the backtick is actually the UTF8 nbsp sequence Replacing the the UTF8 nbsp sequence with the ` ` sequence. --- src/markdown.cpp | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index 6b5a894..df1ffe7 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2453,19 +2453,32 @@ static QCString detab(const QCString &s,int &refIndent) col++; break; default: // non-whitespace => update minIndent - out.addChar(c); if (c<0 && i= 2 bytes - if (((uchar)c&0xE0)==0xE0 && i= 2 bytes + if (((uchar)c&0xE0)==0xE0 && i