diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-12 17:36:31 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-12 17:36:31 -0700 |
commit | c5e64712336b9707858bd71c7287c6fd6281545c (patch) | |
tree | 8956f0adf5643680ea255575d8fe96687597ef9e /src/render.c | |
parent | 26305f4eff1e2205c1259e82076295a575d7ca41 (diff) |
Small cleanups.
Moved begin_line setting into render.c, so you don't need to
worry about it in outc.
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render.c b/src/render.c index 9fea832..ab53558 100644 --- a/src/render.c +++ b/src/render.c @@ -86,8 +86,12 @@ void S_out(cmark_renderer *renderer, renderer->column = 0; renderer->begin_line = true; renderer->last_breakable = 0; + } else if (escape == LITERAL) { + cmark_render_code_point(renderer, c); + renderer->begin_line = false; } else { (renderer->outc)(renderer, escape, c, nextc); + renderer->begin_line = false; } // If adding the character went beyond width, look for an |