Skip to content
Snippets Groups Projects
Commit f4e370ad authored by tuhe's avatar tuhe
Browse files

updates

parent 57fba2ef
No related branches found
No related tags found
Loading
No preview for this file type
No preview for this file type
...@@ -69,7 +69,7 @@ def fix_f(lines, debug, keep=False): ...@@ -69,7 +69,7 @@ def fix_f(lines, debug, keep=False):
return lines2 return lines2
# stats = {'n': 0} # stats = {'n': 0}
def _block_fun(lines, start_extra, end_extra, keep=False, permute=False, questionmarks=false, halfquestionmarks=False, silent=False): def _block_fun(lines, start_extra, end_extra, keep=False, permute=False, questionmarks=False, halfquestionmarks=False, silent=False):
methods = {'remove': 0} methods = {'remove': 0}
# if method not in ['remove', 'permute', 'questionmark', 'halfquestionmark']: # if method not in ['remove', 'permute', 'questionmark', 'halfquestionmark']:
# assert False # assert False
...@@ -124,15 +124,11 @@ def fix_b(lines, keep=False): ...@@ -124,15 +124,11 @@ def fix_b(lines, keep=False):
if b == None: if b == None:
break break
args = {k:v for k, v in b['start_tag_args'].items() if len(k) > 0} args = {k:v for k, v in b['start_tag_args'].items() if len(k) > 0}
<<<<<<< HEAD
cutout.append( b['block'] ) cutout.append( b['block'] )
b['block'], dn = _block_fun(b['block'], start_extra=b['arg1'], end_extra=b['arg2'], **args, keep=keep) b['block'], dn = _block_fun(b['block'], start_extra=b['arg1'], end_extra=b['arg2'], **args, keep=keep)
======= # cutout += b['block']
cutout += b['block']
# method = b['start_tag_args'].get('', 'remove') # method = b['start_tag_args'].get('', 'remove')
b['block'], dn = _block_fun(b['block'], start_extra=b['arg1'], end_extra=b['arg1'], **args, keep=keep) # b['block'], dn = _block_fun(b['block'], start_extra=b['arg1'], end_extra=b['arg1'], **args, keep=keep)
>>>>>>> 1006ff966030717f7654e4b98720394bb394bb57
lines = block_join(b) lines = block_join(b)
# cutout +_= # cutout +_=
n += dn n += dn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment