Skip to content

Commit

Permalink
Revert "BUG: Missing spaces in extract_text() method (py-pdf#1328)"
Browse files Browse the repository at this point in the history
This reverts commit 5400f5a.

BUG: Missing spaces in extract_text() method (py-pdf#1328)

BUG: Missing spaces in extract_text() method (py-pdf#1328) add test
  • Loading branch information
ssjkamei committed Sep 24, 2024
1 parent 5400f5a commit 65224e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_text_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ def test_space_with_one_unit_smaller_than_font_width():
reader = PdfReader(BytesIO(get_data_from_url(url, name=name)))
page = reader.pages[0]
extracted = page.extract_text().split("Description:")[1].split("8/11/22")[0].strip()
assert """Reporting crude oil leak.
assert extracted == """Reporting crude oil leak.
Leak was isolated to well
pad. Segment of line was
immediately isolated, now
estimated at 5 barrels of oil
spilt. Root cause still
unknown at this time.""" == extracted
unknown at this time."""

0 comments on commit 65224e1

Please sign in to comment.