mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Put quotes around strings for statement operands.
This makes reading output a bit easier (especially if the string is empty or just whitespace).
This commit is contained in:
parent
f8bdd909cc
commit
5c79953a7e
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ operand_string (operand_t *op)
|
|||
case op_value:
|
||||
switch (op->o.value->type) {
|
||||
case ev_string:
|
||||
return quote_string (op->o.value->v.string_val);
|
||||
return va ("\"%s\"",
|
||||
quote_string (op->o.value->v.string_val));
|
||||
case ev_float:
|
||||
return va ("%g", op->o.value->v.float_val);
|
||||
case ev_vector:
|
||||
|
|
Loading…
Reference in a new issue