-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
wp-cli/wp-cli
#6055Description
Given a post meta field with a value that contains line breaks, the output of wp post meta list
breaks. Example:
$ wp post meta list 123
+---------+----------+------------+
| post_id | meta_key | meta_value |
+---------+----------+------------+
| 123 | foo | foo |
| 123 | bar | bar
bar
bar
bar
bar
bar |
| 123 | baz | baz |
+---------+----------+------------+
Should this output be improved? A potential improvement would be:
+---------+----------+------------+
| post_id | meta_key | meta_value |
+---------+----------+------------+
| 123 | foo | foo |
| 123 | bar | bar |
| | | bar |
| | | bar |
| | | bar |
| | | bar |
| 123 | baz | baz |
+---------+----------+------------+
This might be difficult to implement though.
Note: The wp post get
command doesn't suffer from this problem, which means line breaks in the post_content
field don't break the output.