Skip to content

Commit

Permalink
[review workflow] Use BRIGTH style for value_start only (#168)
Browse files Browse the repository at this point in the history
* value start only mark in review

* bckfix
  • Loading branch information
babenek authored Sep 9, 2024
1 parent 8b85e7d commit d117bf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions review_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def read_data(path, line_start, line_end, value_start, value_end, ground_truth,
+ Style.RESET_ALL \
+ fore_style \
+ data_line[value_end + multiline_end_offset:]
elif 0 <= value_start and 0 > value_end:
line = data_line[:value_start] \
+ Style.BRIGHT \
+ data_line[value_start:]
else:
line = data_line
print(f"{line_start}:{Style.RESET_ALL}{fore_style}{line}{Style.RESET_ALL}", flush=True)
Expand Down

0 comments on commit d117bf2

Please sign in to comment.