diff options
Diffstat (limited to 'ftt-docgen')
-rwxr-xr-x | ftt-docgen | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -52,14 +52,19 @@ def format_scenario_step(bind, line, prev_keyword): sys.exit('AND may not be used on first step in snippet') real_keyword = prev_keyword debug('keyword: %r' % keyword) - line = line[len(keyword):] + line = line[len(keyword):].lstrip() debug('line: %r' % line) for b in bind: + debug('consider binding %r' % b) if real_keyword not in b: + debug('keyword %r not in binding' % real_keyword) continue m = re.match(b[real_keyword.lower()], line, re.I | re.M) + debug('m: %r' % m) if m and m.end() == len(line): + debug('match: %r' % line) + debug(' : %r' % m.groupdict()) line = format_match(keyword, line, m) break else: |