Set newline when splitting text paragraph
authorThomas White <taw@physics.org>
Tue, 27 Mar 2018 21:19:08 +0000 (23:19 +0200)
committerThomas White <taw@physics.org>
Tue, 27 Mar 2018 21:19:08 +0000 (23:19 +0200)
src/frame.c

index 5793e97..b87a7c3 100644 (file)
@@ -1740,6 +1740,7 @@ static SCBlock *split_text_paragraph(struct frame *fr, int pn, size_t pos,
 
        /* Add a \newpara after the end of the first paragraph's SC */
        nnp = sc_block_append(rr->rscblock, strdup("newpara"), NULL, NULL, NULL);
+       set_newline_at_end(pnew, get_newline_at_end(para));
        set_newline_at_end(para, nnp);
 
        wrap_paragraph(para, pc, fr->w - fr->pad_l - fr->pad_r, 0, 0);