Fix: Do not right trim lines in code block.
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 5286f36..8691b0e 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -1636,8 +1636,10 @@ done:
}
/* Trim tailing spaces. */
- while(line->end > line->beg && CH(line->end-1) == _T(' '))
- line->end--;
+ if(line->type != MD_LINE_INDENTEDCODE && line->type != MD_LINE_FENCEDCODE) {
+ while(line->end > line->beg && CH(line->end-1) == _T(' '))
+ line->end--;
+ }
/* Eat also the new line. */
if(off < ctx->size && CH(off) == _T('\r'))