title: How to get text from each line from TextInput in Kivy
body: <p>I'm trying to extract the text from each line in TextInput.</p>
  <p>For example, we have a TextInput with text=&quot;Hello I came from the earth and my name is&quot; like this:</p>
  <p><a href="https://i.stack.imgur.com/ruF6x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ruF6x.png" alt="enter image description here" /></a></p>
  <p>and the output will be: [&quot;Hello I came from the&quot;,&quot;earth and my name is&quot;]</p>
  <p>And when we resize it smaller like this:</p>
  <p><a href="https://i.stack.imgur.com/IcimL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IcimL.png" alt="enter image description here" /></a></p>
  <p>we will get the output: [&quot;Hello I came&quot;,&quot;from the earth&quot;,&quot;and my name is&quot;]</p>
  <p>I tried the &quot;_lines&quot; function, but it is not really accurate when sometimes it gives the wrong len(lines) or wrong words in each line.</p>
  <p>So I wonder if there is any way to determine those? Or maybe I can get the TextInput's texture_size, but I don't think TextInput support that.</p>