the problem is that %s implies string(test), which returns "1\n21\n321\n"
do separate printf calls for each element in the array and you should get the desired effect On Thu, Mar 27, 2014 at 10:22 PM, Andrew Dabrowski <[email protected]> wrote: > > j > ulia> test = [ "1", "21", "321" ] > 3-element Array{ASCIIString,1}: > "1" > "21" > "321" > > > I'd like to print this out as > > 1 > 21 > 321 > > > julia> print( test ) > 1 > 21 > 321 > > julia> @printf( "%3s", test ) > 1 > 21 > 321 > > > > > Maybe I just don't understand the formatting commands: according to what I > read, "%3s" means to print each string with width 3. How do I get right > justification?
