Line 0
Link Here
|
|
|
1 |
--- awscli/help.py.orig 2019-08-27 18:05:04 UTC |
2 |
+++ awscli/help.py |
3 |
@@ -107,13 +107,13 @@ class PosixHelpRenderer(PagingHelpRenderer): |
4 |
|
5 |
def _convert_doc_content(self, contents): |
6 |
man_contents = publish_string(contents, writer=manpage.Writer()) |
7 |
- if not self._exists_on_path('groff'): |
8 |
- raise ExecutableNotFoundError('groff') |
9 |
- cmdline = ['groff', '-m', 'man', '-T', 'ascii'] |
10 |
+ if not self._exists_on_path('mandoc'): |
11 |
+ raise ExecutableNotFoundError('mandoc') |
12 |
+ cmdline = ['mandoc', '-T', 'ascii'] |
13 |
LOG.debug("Running command: %s", cmdline) |
14 |
p3 = self._popen(cmdline, stdin=PIPE, stdout=PIPE, stderr=PIPE) |
15 |
- groff_output = p3.communicate(input=man_contents)[0] |
16 |
- return groff_output |
17 |
+ mandoc_output = p3.communicate(input=man_contents)[0] |
18 |
+ return mandoc_output |
19 |
|
20 |
def _send_output_to_pager(self, output): |
21 |
cmdline = self.get_pager_cmdline() |