Ilya Biryukov
5f75f2e3a7
[YAML] Quote multiline string scalars
...
Summary:
Otherwise, the YAML parser breaks when trying to read them back in
'key: multiline_string_value' cases.
This patch fixes a problem when serializing structs which contain multi-line strings.
E.g., if we try to serialize the following struct
```
{ "key1": "first line\nsecond line",
"key2": "another string" }`
```
Before this patch, we got the YAML output that failed to parse:
```
key1: first line
second line
key2: another string
```
After the patch, we get:
```
key1: 'first line
second line'
key2: another string
```
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D47468
llvm-svn: 333527
2018-05-30 10:40:11 +00:00
..
2017-06-22 13:18:46 +00:00
2017-09-25 14:05:00 +00:00
2018-05-01 15:54:18 +00:00
2018-05-30 09:01:12 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2017-01-18 13:52:12 +00:00
2017-01-18 13:52:12 +00:00
2017-08-21 08:43:06 +00:00
2017-04-20 20:28:18 +00:00
2017-02-14 01:38:14 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2017-11-27 18:48:37 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2017-03-02 20:52:51 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-04-12 22:27:38 +00:00
2018-05-01 15:54:18 +00:00
2017-06-06 11:49:48 +00:00
2018-03-02 00:30:43 +00:00
2017-10-24 08:30:19 +00:00
2018-02-08 22:19:00 +00:00
2017-08-03 02:16:21 +00:00
2018-04-26 20:22:17 +00:00
2018-05-14 23:26:06 +00:00
2018-04-05 12:42:12 +00:00
2017-01-17 15:45:07 +00:00
2017-10-24 21:29:18 +00:00
2018-04-13 11:37:06 +00:00
2018-05-01 15:54:18 +00:00
2018-03-21 17:31:49 +00:00
2018-05-23 15:09:29 +00:00
2018-05-01 15:54:18 +00:00
2018-03-02 22:00:38 +00:00
2018-05-01 16:10:38 +00:00
2018-05-01 15:54:18 +00:00
2018-05-18 19:46:24 +00:00
2017-06-29 13:15:31 +00:00
2018-05-01 15:54:18 +00:00
2018-02-17 10:21:33 +00:00
2018-05-01 15:54:18 +00:00
2017-11-08 01:50:29 +00:00
2018-05-11 01:47:27 +00:00
2017-07-13 16:11:08 +00:00
2017-06-15 03:06:38 +00:00
2017-06-15 03:06:38 +00:00
2017-06-15 20:55:51 +00:00
2018-05-01 15:54:18 +00:00
2017-10-23 15:40:44 +00:00
2018-05-01 15:54:18 +00:00
2018-05-14 12:53:11 +00:00
2016-12-20 23:09:09 +00:00
2018-05-01 15:54:18 +00:00
2018-04-29 00:45:03 +00:00
2018-04-17 21:09:16 +00:00
2018-05-01 15:54:18 +00:00
2017-12-28 19:46:14 +00:00
2018-01-05 22:20:30 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-03-23 23:58:25 +00:00
2018-03-23 23:58:25 +00:00
2017-05-29 20:56:27 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 16:10:38 +00:00
2018-04-11 23:09:20 +00:00
2018-05-17 16:30:32 +00:00
2018-05-01 16:10:38 +00:00
2018-05-01 16:10:38 +00:00
2016-12-25 18:41:47 +00:00
2018-05-18 19:46:24 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 16:10:38 +00:00
2017-08-24 23:02:48 +00:00
2016-12-14 19:09:43 +00:00
2017-10-24 21:29:19 +00:00
2018-05-01 16:10:38 +00:00
2018-05-01 16:10:38 +00:00
2016-11-06 20:55:40 +00:00
2018-05-17 22:11:43 +00:00
2017-06-06 11:49:48 +00:00
2017-04-20 20:28:18 +00:00
2016-10-20 15:02:18 +00:00
2018-05-01 15:54:18 +00:00
2016-10-05 22:40:54 +00:00
2017-08-24 23:02:48 +00:00
2018-05-01 16:10:38 +00:00
2018-05-01 15:54:18 +00:00
2018-04-01 18:39:50 +00:00
2016-11-23 00:46:09 +00:00
2018-05-16 17:25:35 +00:00
2018-05-01 15:54:18 +00:00
2018-05-07 05:21:20 +00:00
2018-04-07 00:44:02 +00:00
2017-11-07 21:16:46 +00:00
2017-06-09 21:41:54 +00:00
2018-05-01 15:54:18 +00:00
2016-12-21 18:50:52 +00:00
2018-05-01 16:10:38 +00:00
2018-05-09 02:41:08 +00:00
2018-04-04 21:55:44 +00:00
2018-05-18 18:26:45 +00:00
2017-12-05 10:09:59 +00:00
2017-03-03 20:21:59 +00:00
2018-05-01 15:54:18 +00:00
2018-05-01 15:54:18 +00:00
2018-04-30 14:59:11 +00:00
2018-05-16 18:16:01 +00:00
2018-05-07 13:26:47 +00:00
2017-02-28 18:05:41 +00:00
2016-12-01 02:54:54 +00:00
2018-05-01 16:46:05 +00:00
2018-04-13 11:37:06 +00:00
2018-05-14 12:53:11 +00:00
2018-05-01 16:10:38 +00:00
2018-05-01 15:54:18 +00:00
2018-05-24 11:47:20 +00:00
2018-05-01 15:54:18 +00:00
2018-04-16 07:47:35 +00:00
2017-04-26 23:15:10 +00:00
2018-05-01 15:54:18 +00:00
2018-05-30 10:40:11 +00:00