forked from github/server
use double quotation marks in generated orders.
This commit is contained in:
parent
557f5458ea
commit
db2c2f0744
2 changed files with 3 additions and 3 deletions
|
@ -131,9 +131,9 @@ char* get_command(const order *ord, const struct locale *lang, char *sbuffer, si
|
|||
sbs_strcat(&sbs, str);
|
||||
}
|
||||
else {
|
||||
sbs_strcat(&sbs, " '");
|
||||
sbs_strcat(&sbs, " \"");
|
||||
sbs_strcat(&sbs, str);
|
||||
sbs_strcat(&sbs, "'");
|
||||
sbs_strcat(&sbs, "\"");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -454,7 +454,7 @@ static void test_study_order_quoted(CuTest *tc) {
|
|||
CuAssertIntEquals(tc, K_STUDY, init_order(u->thisorder, lang));
|
||||
CuAssertStrEquals(tc, skillname(SK_WEAPONLESS, lang), gettoken(token, sizeof(token)));
|
||||
|
||||
CuAssertStrEquals(tc, "LERNE 'Waffenloser Kampf'", get_command(u->thisorder, lang, token, sizeof(token)));
|
||||
CuAssertStrEquals(tc, "LERNE \"Waffenloser Kampf\"", get_command(u->thisorder, lang, token, sizeof(token)));
|
||||
|
||||
mstream_init(&out);
|
||||
stream_order(&out, u->thisorder, lang, true);
|
||||
|
|
Loading…
Reference in a new issue