From 4317a96db18f218e4fcfd29046da1121dc161b4f Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 29 May 2021 22:45:13 -0400 Subject: [PATCH] Work around double spacing --- RoboFile.php | 5 ++--- manpages/en.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 5140624..3a577cc 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -334,7 +334,6 @@ class RoboFile extends \Robo\Tasks { */ public function manpage(): Result { $t = $this->collectionBuilder(); - $p = $this->taskParallelExec(); $man = [ 'en' => "man1/arsse.1", ]; @@ -342,9 +341,9 @@ class RoboFile extends \Robo\Tasks { $src = BASE."manpages/$src.md"; $out = BASE."dist/man/$out"; $t->addTask($this->taskFilesystemStack()->mkdir(dirname($out), 0755)); - $p->process("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src)); + $t->addTask($this->taskExec("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src))); + $t->addTask($this->taskReplaceInFile($out)->regex('/\.\n(?!\.)/s')->to(". ")); } - $t->addTask($p); return $t->run(); } diff --git a/manpages/en.md b/manpages/en.md index 4b0bfa1..b577264 100644 --- a/manpages/en.md +++ b/manpages/en.md @@ -187,4 +187,4 @@ J. King\ [https://jkingweb.ca/]() Dustin Wilson\ -[https://dustinwilson.com/]() \ No newline at end of file +[https://dustinwilson.com/]()