summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index dbb1910..088b934 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -341,7 +341,8 @@ S_render_node(cmark_renderer *renderer,
break;
case CMARK_NODE_SOFTBREAK:
- if (CMARK_OPT_HARDBREAKS & options) {
+ if (renderer->width == 0 &&
+ !(CMARK_OPT_HARDBREAKS & options)) {
CR();
} else {
OUT(" ", true, LITERAL);