Skip to content

Commit 0677153

Browse files
committed
fix sprintf WIP
1 parent 4953e4c commit 0677153

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/perlonjava/operators/SprintfOperator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ private static String handleMissingArgument(FormatSpecifier spec,
558558

559559
// Special handling for vector formats
560560
if (spec.vectorFlag) {
561-
return " "; // Vector formats with missing argument output a space
561+
return ""; // Vector formats with missing argument output nothing
562+
// The warning handler will add " MISSING" with space
562563
}
563564

564565
// Return appropriate default value based on conversion type

0 commit comments

Comments
 (0)