From 45dd3346cd2e16ea30ef7b79a0f01253630a6ced Mon Sep 17 00:00:00 2001 From: phiresky Date: Tue, 19 May 2020 12:03:44 +0200 Subject: [PATCH] fix hyphenation in PDFs --- CHANGELOG.md | 1 + src/adapters/poppler.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7022b8d..85f3708 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Fix windows builds - Case insensitive file extension matching - Move to Github Actions instead of Travis +- Fix searching for words that are hyphenated in PDFs (#44) # 0.9.5 (2020-04-08) diff --git a/src/adapters/poppler.rs b/src/adapters/poppler.rs index 1b501d7..42df503 100644 --- a/src/adapters/poppler.rs +++ b/src/adapters/poppler.rs @@ -39,7 +39,7 @@ impl SpawningFileAdapter for PopplerAdapter { "pdftotext" } fn command(&self, _filepath_hint: &Path, mut cmd: Command) -> Command { - cmd.arg("-layout").arg("-").arg("-"); + cmd.arg("-").arg("-"); cmd } fn postproc(line_prefix: &str, inp: &mut dyn Read, oup: &mut dyn Write) -> Fallible<()> {