title: How to draw a border around multiline text in compose
body: <p>I want to draw a border around a <code>Text</code> like this,</p>
  <pre><code>Text(&quot;Box around text&quot;,
      modifier = Modifier
          .padding(top = 8.dp)
          .border(width = 2.dp, color = Color.Red)
          .background(Color.DarkGray))
  Text(&quot;Box around text with a very very very very longlonglonglongword&quot;,
      modifier = Modifier
          .padding(top = 8.dp)
          .border(width = 2.dp, color = Color.Red)
          .background(Color.DarkGray)
  )  
  </code></pre>
  <p>But in the case of a multiline text, it doesn't look well.<br />
  There is a gap on the right between the border and the text.</p>
  <p><a href="https://i.stack.imgur.com/DMULS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DMULS.png" alt="box around text" /></a></p>
  <p>So how to draw a border around a multiline text, so that it fits the text width?</p>