diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-23 23:01:35 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-23 23:01:35 +0200 |
commit | 2aac89de6e1864e5b92990baa6ea1d24458a3e11 (patch) | |
tree | 98c487e24ae0a563cee6363651e70e3ebefdba11 /src | |
parent | bc848e7d290656926337396622af68fffe10f0b2 (diff) |
Space lines after fixing up
Diffstat (limited to 'src')
-rw-r--r-- | src/wrap.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -928,20 +928,6 @@ int wrap_contents(struct frame *fr) } while ( para != NULL ); - for ( i=0; i<fr->n_lines; i++ ) { - - struct wrap_line *line = &fr->lines[i]; - - //distribute_spaces(line, wrap_w, rho); - space_line_ragged(line, wrap_w); - - /* Strip any sentinel boxes added by the wrapping algorithm */ - if ( line->boxes[line->n_boxes-1].type == WRAP_BOX_SENTINEL ) { - line->n_boxes--; - } - - } - /* If the last paragraph ended with an EOP, add an extra line */ if ( eop || (fr->n_lines == 0) ) { @@ -991,6 +977,20 @@ int wrap_contents(struct frame *fr) } for ( i=0; i<fr->n_lines; i++ ) { + + struct wrap_line *line = &fr->lines[i]; + + //distribute_spaces(line, wrap_w, rho); + space_line_ragged(line, wrap_w); + + /* Strip any sentinel boxes added by the wrapping algorithm */ + if ( line->boxes[line->n_boxes-1].type == WRAP_BOX_SENTINEL ) { + line->n_boxes--; + } + + } + + for ( i=0; i<fr->n_lines; i++ ) { calc_line_geometry(&fr->lines[i]); } |