From 01ec65314d53d92e28194729c568ef2d2313d4f1 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 3 Jul 2019 11:27:49 +0300 Subject: Change: scenario step formatting (keyword, regexp match) Previously step keyword was bold, now it is italic. Previously regexp match was italic, now it is bold. --- ftt-docgen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftt-docgen b/ftt-docgen index cb774e8..c3218c9 100755 --- a/ftt-docgen +++ b/ftt-docgen @@ -14,7 +14,7 @@ import yaml def format_keyword(line): words = line.split(' ') keyword = words[0] - return '**{}** '.format(keyword) + line[len(keyword):] + return '*{}* '.format(keyword) + line[len(keyword):] def indent(line): prefix = ' ' * 4 @@ -28,7 +28,7 @@ def format_match(keyword, line, m): for i in range(1, n+1): parts.append(line[end:m.start(i)]) thispart = line[m.start(i) : m.end(i)] - parts.append('_{}_'.format(thispart)) + parts.append('**{}**'.format(thispart)) end = m.end(i) line = ''.join(parts) + line[m.end(n):] line = '{} {}'.format(keyword, line) -- cgit v1.2.1