From 525faae5498adb4b4f1c0f4657b9ef71fc31c4d6 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 24 Dec 2019 18:25:09 +0000 Subject: 45137: zformat: Allow the specifying minimum width and a dot with an empty maximum width. Before this commit, format specs such as '%5.s' would be printed literally. Now, they are treated as equivalent to '%5s'. The '.' character is not allowed to be used in specs, so there is no incompatibility. --- Test/V13zformat.ztst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Test') diff --git a/Test/V13zformat.ztst b/Test/V13zformat.ztst index d8de2bb04..982866e13 100644 --- a/Test/V13zformat.ztst +++ b/Test/V13zformat.ztst @@ -17,12 +17,14 @@ zformat_and_print_s '%s' foo zformat_and_print_s '%5s' min zformat_and_print_s '%-5s' neg + zformat_and_print_s '%5.s' empty zformat_and_print_s '%.5s' max zformat_and_print_s '%.5s' truncated 0:basic zformat test >'foo' >'min ' >' neg' +>'empty' >'max' >'trunc' -- cgit 1.4.1