Frank Heckenbach wrote:
Russell Whitaker wrote:
minwidth for strings in writeln is broken:
program hello; begin writeln('hello':30, ' ':30, 'world'); end.
The output should be 25 spaces in front of hello and 30 spaces between hello and world.
That's what I get!?
Did you compile with any special options?
Can someone else reproduce the problem?
Following is my result:
[1] c:\p\junk>a 12345678901234567890123456789012345678901234567890123456789012345 Hello world
[1] c:\p\junk>gpc --version gpc.exe 20021128, based on gcc-3.2.1 ....
[1] c:\p\junk>type test05.p PROGRAM test05(input, output);
VAR i : integer;
BEGIN FOR i := 1 TO 65 DO write(chr(ord('0') + (i MOD 10))); writeln; writeln('Hello' : 30, ' ' : 30, 'world'); END.