title: Left-pad printf with spaces
body: <p>How can I pad a string with spaces on the left when using printf?</p>
  
  <p>For example, I want to print "Hello" with 40 spaces preceding it.</p>
  
  <p>Also, the string I want to print consists of multiple lines.  Do I need to print each line separately?</p>
  
  <p>EDIT: Just to be clear, I want exactly 40 spaces printed before every line.</p>