From 3580d6229a2c2ee5815ff76665d4bb014eacfb99 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Jul 2010 23:51:21 +0000 Subject: - text3d was missing menu items for toggling bold/underline/italic/smallcaps. - made smallcaps use a temp flag so caps can still have the smallcaps flag. - utility function for getting the char from a font. find_vfont_char(), was inline in ~5 places. - removed CU_STYLE mix of flags only used in one place, not needed. removed 'style' from rna too. - fix for some warnings. --- doc/blender.1.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/blender.1.py b/doc/blender.1.py index c77e5ccbc3d..576b58758cd 100644 --- a/doc/blender.1.py +++ b/doc/blender.1.py @@ -31,12 +31,12 @@ def man_format(data): data = data.replace("-", "\\-") data = data.replace("\t", " ") # data = data.replace("$", "\\fI") - + data_ls = [] for w in data.split(): if w.startswith("$"): w = "\\fI" + w[1:] + "\\fR" - + data_ls.append(w) data = data[:len(data) - len(data.lstrip())] + " ".join(data_ls) @@ -90,16 +90,16 @@ lines = [line.rstrip() for line in blender_help.split("\n")] while lines: l = lines.pop(0) if l.startswith("Environment Variables:"): - fw('.SH "ENVIRONMENT VARIABLES"\n') + fw('.SH "ENVIRONMENT VARIABLES"\n') elif l.endswith(":"): # one line - fw('.SS "%s"\n\n' % l) + fw('.SS "%s"\n\n' % l) elif l.startswith("-") or l.startswith("/"): # can be multi line fw('.TP\n') fw('.B %s\n' % man_format(l)) - + while lines: - # line with no + # line with no if lines[0].strip() and len(lines[0].lstrip()) == len(lines[0]): # no white space break @@ -112,7 +112,7 @@ while lines: l = l[1:] # remove first whitespace (tab) fw('%s\n' % man_format(l)) - + else: if not l.strip(): fw('.br\n') -- cgit v1.2.3