We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9adab1 commit c5ea661Copy full SHA for c5ea661
src/v2/pdf_resources/page_cell.h
@@ -325,7 +325,12 @@ namespace pdflib
325
326
if((not left_to_right) or (not other.left_to_right))
327
{
328
- if(d0 >= delta and not overlap)
+ // 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))
334
335
text = " " + text;
336
}
@@ -335,7 +340,7 @@ namespace pdflib
340
341
else
337
342
338
343
339
344
345
text += " ";
346
0 commit comments