|
|
@@ -2469,6 +2469,10 @@ func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, si
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
// Check if we are at the end of the scalar.
|
|
|
if single {
|
|
|
if parser.buffer[parser.buffer_pos] == '\'' {
|
|
|
@@ -2481,10 +2485,6 @@ func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, si
|
|
|
}
|
|
|
|
|
|
// Consume blank characters.
|
|
|
- if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) {
|
|
|
- return false
|
|
|
- }
|
|
|
-
|
|
|
for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) {
|
|
|
if is_blank(parser.buffer, parser.buffer_pos) {
|
|
|
// Consume a space or a tab character.
|