Skip to content

Commit

Permalink
Changes nsecs formatting specification.
Browse files Browse the repository at this point in the history
This better explains the intent of this formatting, always one space and
aligned to the right with a minimum width of 9 characters.
  • Loading branch information
iwanders committed Dec 28, 2015
1 parent 697001b commit 838ea5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/genpy/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def strify_message(val, indent='', time_offset=None, current_time=None, field_fi
nsec_str = '\n%snsecs: ' % indent + (format_str % val.nsecs)
return sec_str + nsec_str
else:
return '\n%ssecs: %s\n%snsecs:% 10d'%(indent, val.secs, indent, val.nsecs)
return '\n%ssecs: %s\n%snsecs: %9d'%(indent, val.secs, indent, val.nsecs)

elif type_ in (list, tuple):
if len(val) == 0:
Expand Down

0 comments on commit 838ea5b

Please sign in to comment.