aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:35 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:35 +0200
commit2aac89de6e1864e5b92990baa6ea1d24458a3e11 (patch)
tree98c487e24ae0a563cee6363651e70e3ebefdba11
parentbc848e7d290656926337396622af68fffe10f0b2 (diff)
Space lines after fixing up
-rw-r--r--src/wrap.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/wrap.c b/src/wrap.c
index a55182c..2013f31 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -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]);
}