diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-06-14 10:32:16 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-06-14 10:32:16 +0300 |
commit | abe60d7ff017d213c16feb495999fa31fa7c86d5 (patch) | |
tree | d113948154ccfb1fdd78f31d4ebb26ed38906056 | |
parent | d7dd3810a2a8f186d152bcbbb6ed138b4226c922 (diff) | |
download | fable-poc-abe60d7ff017d213c16feb495999fa31fa7c86d5.tar.gz |
Fix: formatting of steps without a matching binding
-rwxr-xr-x | ftt-docgen | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -45,6 +45,8 @@ def format_scenario_step(bind, line, prev_keyword): line = '{} {}'.format(keyword, line) debug(' match: {!r}'.format(line)) break + else: + line = '{} {}'.format(real_keyword, line) if not line.strip(): return line @@ -161,8 +163,9 @@ def walk(o, func): walk(c, func) def debug(msg): - sys.stderr.write('DEBUG: {}\n'.format(msg)) - sys.stderr.flush() + if False: + sys.stderr.write('DEBUG: {}\n'.format(msg)) + sys.stderr.flush() debug('reading bindings') bindings = yaml.safe_load(open(sys.argv[1])) |