title: python wrap text and reportlab
body: <p>I have a little code and I would like to wrap my long string in every 10th character and then add it into a PDF using reportlab: </p>
  
  <p>This is how I try:</p>
  
  <pre><code>text = '*long_text_long_text_long_text_long_text*'
  text = "\n".join(wrap(text, 10))
  canvas.drawString(5,227, text)
  </code></pre>
  
  <p>My pdf was created but where I want to break the lines I can only see black rectangles. You can see the attached picture:</p>
  
  <p><a href="https://i.stack.imgur.com/mrzTZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mrzTZ.jpg" alt="enter image description here"></a></p>
  
  <p>Can you help me? Thank you!</p>