Skip to content

Commit f51c276

Browse files
gh-68: Remove PRINT spaces.
1 parent ac847d0 commit f51c276

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/SPECIFICATION.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@
10341034

10351035
#### 9.1.12 Console and process operators
10361036

1037-
- `INT: PRINT(INT|STR: arg1, ..., INT|STR: argN)` = MUST render each argument according to the language's `STR` conversion rules for `INT` and `STR`, separate adjacent rendered arguments with a single space, append a trailing newline, write the result to the console output, record the corresponding I/O event in the execution log, and return `0`.
1037+
- `INT: PRINT(INT|STR: arg1, ..., INT|STR: argN)` = MUST render each argument according to the language's `STR` conversion rules for `INT` and `STR`, concatenate the rendered arguments, append a trailing newline, write the result to the console output, record the corresponding I/O event in the execution log, and return `0`.
10381038

10391039
- `STR: INPUT()` or `STR: INPUT(STR: prompt)` = MUST read a single line of text from the console input and return it as a `STR`. If `prompt` is supplied, the interpreter MUST write it to the console before reading input. The resulting input event MUST be recorded in the execution log, and if a prompt was supplied the recorded event MUST include that prompt text.
10401040

src/builtins.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4896,7 +4896,6 @@ static Value builtin_print(Interpreter* interp, Value* args, int argc, Expr** ar
48964896
int forward = !(interp && interp->shushed);
48974897

48984898
for (int i = 0; i < argc; i++) {
4899-
if (i > 0 && forward) printf(" ");
49004899
switch (args[i].type) {
49014900
case VAL_INT: {
49024901
char* s = int_to_base_prefixed_str(args[i].as.i, numeric_base_of(args[i]));

0 commit comments

Comments
 (0)