1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Work around double spacing

This commit is contained in:
J. King 2021-05-29 22:45:13 -04:00
parent 62d49e0d3c
commit 4317a96db1
2 changed files with 3 additions and 4 deletions

View file

@ -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();
}