diff options
author | Thomas White <taw@bitwiz.org.uk> | 2015-02-13 21:59:46 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2015-02-14 11:37:16 +0100 |
commit | 0a9a7aa1ddf4602798d975747d83db8a17907ecc (patch) | |
tree | 7f5d102d532da430b490548f05fa46aa2d1c4180 /src | |
parent | c88f76b4c520c5b97999d351770d9ef6d4239c21 (diff) |
Fix random newlines
Diffstat (limited to 'src')
-rw-r--r-- | src/shape.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shape.c b/src/shape.c index 13d5163..3453e59 100644 --- a/src/shape.c +++ b/src/shape.c @@ -101,7 +101,7 @@ static void add_wrap_box(gpointer vi, gpointer vb) static void add_nothing_box(struct wrap_line *line, SCBlock *scblock, - int editable) + int editable, enum wrap_box_space sp) { struct wrap_box *box; @@ -115,7 +115,7 @@ static void add_nothing_box(struct wrap_line *line, SCBlock *scblock, box->type = WRAP_BOX_NOTHING; box->scblock = scblock; box->offs_char = 0; - box->space = WRAP_SPACE_EOP; + box->space = sp; box->width = 0; box->ascent = 0; box->height = 0; @@ -180,7 +180,7 @@ static int add_wrap_boxes(struct wrap_line *line, const char *text, //printf("adding '%s'\n", swizzle(text+offs, len)); while ( len==0 ) { - add_nothing_box(line, bl, editable); + add_nothing_box(line, bl, editable, space); return 0; } |