Martin Atkins
7db2825646
command/format: multi-line rendering for unchanged strings
...
We have a special treatment for multi-line strings that are being updated
in-place where we show them across multiple lines in the plan output, but
we didn't use that same treatment for rendering multi-line strings in
isolation such as when they are being added for the first time.
Here we detect when we're rendering a multi-line string in a no-change
situation and render it using the diff renderer instead, using the same
value for old and new and thus producing a multi-line result without any
diff markers at all.
This improves consistency between the change and no-change cases, and
makes multi-line strings (such as YAML in block mode) readable in all
cases.
2019-11-07 15:25:40 -08:00
..
2019-10-11 22:40:54 +01:00
2018-10-16 19:11:09 -07:00
2019-09-06 14:27:16 -07:00
2019-11-07 15:25:40 -08:00
2019-10-02 15:10:21 -07:00
2019-10-17 11:33:04 -04:00
2019-04-10 14:53:52 -07:00
2019-10-08 13:42:34 -04:00
2019-10-17 11:33:04 -04:00
2019-09-09 11:15:24 -07:00
2019-10-02 15:10:21 -07:00
2018-11-20 11:15:16 +01:00
2019-10-10 10:07:01 -07:00
2019-08-06 19:58:58 -04:00
2017-12-05 10:24:04 -08:00
2018-10-16 19:11:09 -07:00
2014-07-12 20:59:16 -07:00
2015-04-29 13:07:13 -05:00
2019-06-30 10:16:15 +02:00
2018-08-03 22:22:55 +02:00
2016-11-14 00:32:01 -08:00
2018-10-16 18:46:46 -07:00
2019-10-10 10:07:01 -07:00
2019-10-10 10:07:01 -07:00
2016-11-21 11:59:20 -05:00
2018-03-28 13:08:38 -04:00
2018-11-23 16:13:34 +01:00
2016-12-10 14:30:40 -05:00
2019-10-02 15:10:21 -07:00
2019-06-18 17:15:59 -04:00
2019-10-02 15:10:21 -07:00
2019-01-17 16:52:34 -08:00
2019-08-16 08:31:21 -04:00
2018-10-16 19:14:11 -07:00
2019-10-10 10:07:01 -07:00
2019-01-14 11:33:21 -08:00
2019-08-06 14:24:24 -04:00
2019-08-06 14:24:24 -04:00
2019-09-20 10:02:42 -04:00
2019-10-02 15:10:21 -07:00
2019-07-23 08:08:28 -04:00
2019-10-02 15:10:21 -07:00
2019-06-10 15:31:21 -04:00
2018-01-05 10:59:30 -05:00
2018-01-05 10:59:30 -05:00
2019-10-11 22:40:54 +01:00
2019-10-11 22:40:54 +01:00
2019-05-24 14:51:18 -04:00
2019-03-21 14:05:41 -07:00
2019-10-02 15:10:21 -07:00
2019-10-02 15:10:21 -07:00
2019-07-18 16:11:41 -04:00
2019-10-10 10:07:01 -07:00
2019-10-02 15:10:21 -07:00
2019-10-11 22:40:54 +01:00
2019-11-06 16:26:32 -08:00
2019-11-06 16:26:32 -08:00
2019-10-10 10:07:01 -07:00
2019-10-08 16:11:36 -04:00
2018-03-28 13:08:38 -04:00
2018-01-16 18:05:26 -08:00
2019-09-09 16:59:50 -04:00
2018-10-16 19:14:11 -07:00
2019-06-30 10:16:15 +02:00
2019-10-10 10:07:01 -07:00
2018-10-16 19:14:11 -07:00
2019-08-16 08:31:21 -04:00
2018-10-16 18:24:47 -07:00
2019-06-30 10:16:15 +02:00
2019-03-06 09:25:36 -05:00
2019-11-06 06:53:32 -08:00
2019-11-06 06:53:32 -08:00
2017-02-28 16:35:46 -05:00
2018-10-19 16:31:12 +02:00
2019-08-16 08:31:21 -04:00
2019-03-18 09:19:55 -07:00
2019-08-01 18:54:09 -04:00
2019-08-16 08:31:21 -04:00
2018-11-19 09:02:35 -08:00
2019-08-16 08:31:21 -04:00
2018-11-20 11:15:16 +01:00
2019-08-16 08:31:21 -04:00
2019-03-18 09:19:55 -07:00
2019-08-16 08:31:21 -04:00
2019-05-16 14:52:06 +01:00
2019-10-10 10:07:01 -07:00
2018-10-16 19:14:11 -07:00
2018-11-20 11:15:16 +01:00
2019-08-16 08:31:21 -04:00
2019-04-29 15:15:26 +02:00
2019-04-29 15:15:26 +02:00
2019-03-12 17:57:26 -04:00
2019-08-16 08:31:21 -04:00
2018-11-20 11:15:16 +01:00
2019-08-16 08:31:21 -04:00
2019-06-18 17:37:24 -07:00
2019-10-14 15:35:33 -04:00
2014-05-24 12:04:43 -07:00
2019-07-06 15:18:13 +02:00
2018-11-08 08:57:11 -08:00
2019-08-16 11:47:00 -04:00
2019-08-16 08:31:21 -04:00
2019-08-16 08:31:21 -04:00
2019-08-16 08:31:21 -04:00
2019-08-16 08:31:21 -04:00
2019-08-16 08:31:21 -04:00