fix hyphenation in PDFs

This commit is contained in:
phiresky 2020-05-19 12:03:44 +02:00
parent d0dcd97232
commit 45dd3346cd
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fix windows builds - Fix windows builds
- Case insensitive file extension matching - Case insensitive file extension matching
- Move to Github Actions instead of Travis - Move to Github Actions instead of Travis
- Fix searching for words that are hyphenated in PDFs (#44)
# 0.9.5 (2020-04-08) # 0.9.5 (2020-04-08)

View File

@ -39,7 +39,7 @@ impl SpawningFileAdapter for PopplerAdapter {
"pdftotext" "pdftotext"
} }
fn command(&self, _filepath_hint: &Path, mut cmd: Command) -> Command { fn command(&self, _filepath_hint: &Path, mut cmd: Command) -> Command {
cmd.arg("-layout").arg("-").arg("-"); cmd.arg("-").arg("-");
cmd cmd
} }
fn postproc(line_prefix: &str, inp: &mut dyn Read, oup: &mut dyn Write) -> Fallible<()> { fn postproc(line_prefix: &str, inp: &mut dyn Read, oup: &mut dyn Write) -> Fallible<()> {