www.webdeveloper.com
Results 1 to 1 of 1

Thread: printf left alignment string format issue

  1. #1
    Join Date
    Sep 2012
    Posts
    17

    Unhappy printf left alignment string format issue

    Hi Guys,

    I have an issue here. My code in printf is not formatting string left alignment for last column properly. See attachment for output.

    Code:
    printf MYFILE ("%-8s %13.0f %-38s\n", $original_line, $result, $user_folders);
    $original_line prints 1st 3 columns as 1 string.

    Command printf prints last column close to previous column left justified (but with inadequate spacing). I think this is the format I need. However, changing number in printf for last column to get better alignment under folder access heading doesn't increase spacing until column jumps to next line abruptly.

    Thanks for any help you can provide.
    Attached Files Attached Files
    Last edited by begood321; 12-17-2012 at 03:18 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles