diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 03:51:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 03:51:21 +0400 |
commit | 3580d6229a2c2ee5815ff76665d4bb014eacfb99 (patch) | |
tree | 24a38ec45f417458760875c20d10914e4aa5c973 /doc | |
parent | 03e638d1285b2a26902230772ae9261406fd6658 (diff) |
- 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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/blender.1.py | 14 |
1 files changed, 7 insertions, 7 deletions
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') |