diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2009-01-21 18:45:31 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2009-01-21 18:45:31 +0300 |
commit | 73cffd9aad43eeb3c1aa029c0e03564739a72800 (patch) | |
tree | ad49ec79453d7ca170ccd598ec94d73a421be067 /release | |
parent | 8bd7aa0a01ee53172bb4fd1bd2de1b318c4ea80c (diff) |
== Scripts ==
- Scripts Help Browser: error parsing doc info wrapped in triple single quotes, like done in the 3ds importer. Thanks Jean-Michel (jms) for informing me about it.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/help_browser.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/release/scripts/help_browser.py b/release/scripts/help_browser.py index b5d747ee9c4..c207a12068f 100644 --- a/release/scripts/help_browser.py +++ b/release/scripts/help_browser.py @@ -8,7 +8,7 @@ Tooltip: 'Show help information about a chosen installed script.' """ __author__ = "Willian P. Germano" -__version__ = "0.2 01/11/09" +__version__ = "0.3 01/21/09" __email__ = ('scripts', 'Author, wgermano:ig*com*br') __url__ = ('blender', 'blenderartists.org') @@ -68,7 +68,8 @@ Hotkeys:<br> # ***** END GPL LICENCE BLOCK ***** # -------------------------------------------------------------------------- # Thanks: Brendon Murphy (suggestion) and Kevin Morgan (implementation) -# for the "run" button. +# for the "run" button; Jean-Michel Soler for pointing a parsing error +# with multilines using triple single quotes. import Blender from Blender import sys as bsys, Draw, Window, Registry @@ -355,7 +356,12 @@ def parse_pyobj(var, lines, i): l = "ERROR" elif l[0] == "'": - if l[-1] == '\\': + if l[1:3] == "''": # ''' + if l.find("'''", 3) < 0: # multiline + l2, i = parse_pyobj_close("'''", lines, i) + if l[-1] == '\\': l = l[:-1] + l = "%s%s" % (l, l2) + elif l[-1] == '\\': l2, i = parse_pyobj_close("'", lines, i) l = "%s%s" % (l, l2) elif l[-1] == "'" and l[-2] != '\\': # single line: '...' |