diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2016-11-14 07:30:19 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2016-11-14 07:30:19 +0900 |
commit | 74b8ea1c6ef0ed5d0a36a8236cedeb44875d54be (patch) | |
tree | 2e09fe04ef365227d756f3692db23a49847da5bd /ext | |
parent | 2db512b2efbe76bbb960cc51d113d5367d38a91b (diff) | |
download | psych-74b8ea1c6ef0ed5d0a36a8236cedeb44875d54be.zip |
Revert changesets after the libyaml-0.1.7 release
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/yaml/emitter.c | 4 | ||||
-rw-r--r-- | ext/psych/yaml/scanner.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/psych/yaml/emitter.c b/ext/psych/yaml/emitter.c index 1289437..c4b56a2 100644 --- a/ext/psych/yaml/emitter.c +++ b/ext/psych/yaml/emitter.c @@ -1946,6 +1946,10 @@ yaml_emitter_write_plain_scalar(yaml_emitter_t *emitter, emitter->whitespace = 0; emitter->indention = 0; + if (emitter->root_context) + { + emitter->open_ended = 1; + } return 1; } diff --git a/ext/psych/yaml/scanner.c b/ext/psych/yaml/scanner.c index 3f7f2ac..5ec0be0 100644 --- a/ext/psych/yaml/scanner.c +++ b/ext/psych/yaml/scanner.c @@ -3162,10 +3162,6 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token, *(string.pointer++) = '"'; break; - case '/': - *(string.pointer++) = '/'; - break; - case '\'': *(string.pointer++) = '\''; break; |