зеркало из https://github.com/github/ruby.git
* ext/psych/yaml/emitter.c: Fix typo in the variable name
s/preceeded/preceded/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
967677aba0
Коммит
c0abb5e5c3
|
@ -1493,7 +1493,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|||
int break_space = 0;
|
||||
int space_break = 0;
|
||||
|
||||
int preceeded_by_whitespace = 0;
|
||||
int preceded_by_whitespace = 0;
|
||||
int followed_by_whitespace = 0;
|
||||
int previous_space = 0;
|
||||
int previous_break = 0;
|
||||
|
@ -1524,7 +1524,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|||
flow_indicators = 1;
|
||||
}
|
||||
|
||||
preceeded_by_whitespace = 1;
|
||||
preceded_by_whitespace = 1;
|
||||
followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
|
||||
|
||||
while (string.pointer != string.end)
|
||||
|
@ -1570,7 +1570,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|||
}
|
||||
}
|
||||
|
||||
if (CHECK(string, '#') && preceeded_by_whitespace) {
|
||||
if (CHECK(string, '#') && preceded_by_whitespace) {
|
||||
flow_indicators = 1;
|
||||
block_indicators = 1;
|
||||
}
|
||||
|
@ -1619,7 +1619,7 @@ yaml_emitter_analyze_scalar(yaml_emitter_t *emitter,
|
|||
previous_break = 0;
|
||||
}
|
||||
|
||||
preceeded_by_whitespace = IS_BLANKZ(string);
|
||||
preceded_by_whitespace = IS_BLANKZ(string);
|
||||
MOVE(string);
|
||||
if (string.pointer != string.end) {
|
||||
followed_by_whitespace = IS_BLANKZ_AT(string, WIDTH(string));
|
||||
|
|
Загрузка…
Ссылка в новой задаче