diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-03-28 17:06:59 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-03-28 17:06:59 +0200 |
commit | a1737af28e6fc60e94823c283fb5609c0fde7b92 (patch) | |
tree | e8c7e075907753626c96afe264a311fd2de7ea1b /src | |
parent | 3087709f11b05b943c20436c9c64a09e09223208 (diff) |
Fix paragraph splitting
Diffstat (limited to 'src')
-rw-r--r-- | src/sc_interp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c index 3291725..282cea4 100644 --- a/src/sc_interp.c +++ b/src/sc_interp.c @@ -845,11 +845,12 @@ static int add_text(struct frame *fr, PangoContext *pc, SCBlock *bl, if ( text[start] == '\n' ) { close_last_paragraph(fr); + start += 1; } else { Paragraph *para = last_open_para(fr); add_run(para, bl, start, len, fontdesc, 0); + start += len; } - start += len + 1; } while ( start < len_bytes ); |