local text = "<size=0.5>The brown fox jumps over the lazy dog. The brown fox jumps over the lazy dog.\n\nThe brown fox jumps over the lazy dog. The brown fox jumps over the lazy dog.</size>"
local words, metrics = richtext.create(text, "Roboto", settings)
And here's how it looks (notice the extra newline in the middle of the second paragraph):
Here's a minimal reproductible example:
And here's how it looks (notice the extra newline in the middle of the second paragraph):