Treat write errors in man doc generation
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Just like the last commit, but now for manpages. genMan still works with a buffer and returns []byte instead of working directly with an io.Writer. This is because, in turn, md2man takes byte slices instead of readers and writers. Wrapping genMan around a writer is unnecessary especially since it's not an exported function, and also because we'd still need a buffer to get the output bytes.
authored by Daniel Martí · committed by Daniel Martí · parent eb5040e · Browse files · 2 files+28 added−26 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+28 added−26 removed
- other:+28 added−26 removed