Skip to content

Commit

Permalink
--parseable: add newline for every row
Browse files Browse the repository at this point in the history
Problem: view-user --parseable does not add a newline character for
every row when listing all of the banks that a user belongs to and
instead puts them all on the same line.

Add a newline character for every row that a user belongs to.
  • Loading branch information
cmoussa1 committed Oct 4, 2024
1 parent d98889c commit eeefb0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def get_user_rows(conn, user, headers, rows, parseable, json_fmt):
for row in rows:
for col in list(row):
user_str += str(col).ljust(col_width)
user_str += "\n"

return user_str

Expand Down

0 comments on commit eeefb0b

Please sign in to comment.