Skip to content

Commit

Permalink
Treat \t as whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Dereck Wonnacott <dereck@gmail.com>
  • Loading branch information
dawonn committed Dec 21, 2020
1 parent 5b74acd commit c644738
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rosidl_adapter/rosidl_adapter/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ def parse_message_string(pkg_name, msg_name, message_string):
for line in lines:
line = line.rstrip()

# replace tabs with spaces
line = line.replace('\t', ' ')

# ignore empty lines
if not line:
# file-level comments stop at the first empty line
Expand Down

0 comments on commit c644738

Please sign in to comment.