Browse Source

Work around double spacing

rpm
J. King 3 years ago
parent
commit
4317a96db1
  1. 5
      RoboFile.php
  2. 2
      manpages/en.md

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

2
manpages/en.md

@ -187,4 +187,4 @@ J. King\
[https://jkingweb.ca/]()
Dustin Wilson\
[https://dustinwilson.com/]()
[https://dustinwilson.com/]()

Loading…
Cancel
Save