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<()> {