Fixed unittests.
This commit is contained in:
parent
7285cab2db
commit
5835a84e20
1 changed files with 4 additions and 3 deletions
|
|
@ -93,9 +93,10 @@ def format_header(caller, entry):
|
||||||
"""
|
"""
|
||||||
width = _HEADER_WIDTH - 10
|
width = _HEADER_WIDTH - 10
|
||||||
# strip all comments for the header
|
# strip all comments for the header
|
||||||
|
if caller.ndb.batch_batchmode != "batch_commands":
|
||||||
|
# only do cleanup for batchcode
|
||||||
entry = _RE_CODE_START.split(entry, 1)[1]
|
entry = _RE_CODE_START.split(entry, 1)[1]
|
||||||
entry = _RE_COMMENT.sub("", entry).strip()
|
entry = _RE_COMMENT.sub("", entry).strip()
|
||||||
|
|
||||||
header = utils.crop(entry, width=width)
|
header = utils.crop(entry, width=width)
|
||||||
ptr = caller.ndb.batch_stackptr + 1
|
ptr = caller.ndb.batch_stackptr + 1
|
||||||
stacklen = len(caller.ndb.batch_stack)
|
stacklen = len(caller.ndb.batch_stack)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue