File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,12 @@ namespace pdflib
325325
326326 if ((not left_to_right) or (not other.left_to_right ))
327327 {
328- if (d0 >= delta and not overlap)
328+ // Distance is greather than word spacing, and either cells
329+ // are not overlapping, or it is clearly a new line. (FIXME:
330+ // That last part is what the very incorrectly named
331+ // `horizontal_cell_tolerance` used to do in
332+ // `contract_cells_into_lines_v1`)
333+ if (d0 >= delta and ((not overlap) or y0 - other.y0 > 1.0 ))
329334 {
330335 text = " " + text;
331336 }
@@ -335,7 +340,7 @@ namespace pdflib
335340 }
336341 else
337342 {
338- if (d0 >= delta and not overlap)
343+ if (d0 >= delta and (( not overlap) or y0 - other. y0 > 1.0 ) )
339344 {
340345 text += " " ;
341346 }
You can’t perform that action at this time.
0 commit comments