From 3494245c36805c24c68996551dc77a5438ae2e8f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Jul 2015 15:44:15 -0700 Subject: Limit generated man page to 72 character line width. --- man/make_man_page.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man/make_man_page.py') diff --git a/man/make_man_page.py b/man/make_man_page.py index fe968b4..c7060e7 100644 --- a/man/make_man_page.py +++ b/man/make_man_page.py @@ -31,17 +31,17 @@ parse_document.argtypes = [c_char_p, c_long] render_man = cmark.cmark_render_man render_man.restype = c_char_p -render_man.argtypes = [c_void_p] +render_man.argtypes = [c_void_p, c_long, c_long] def md2man(text): if sys.version_info >= (3,0): textbytes = text.encode('utf-8') textlen = len(textbytes) - return render_man(parse_document(textbytes, textlen)).decode('utf-8') + return render_man(parse_document(textbytes, textlen), 0, 65).decode('utf-8') else: textbytes = text textlen = len(text) - return render_man(parse_document(textbytes, textlen)) + return render_man(parse_document(textbytes, textlen), 0, 72) comment_start_re = re.compile('^\/\*\* ?') comment_delim_re = re.compile('^[/ ]\** ?') -- cgit v1.2.3