For <span>test \n\n\n test</span>, it showed in page:

But for <Text text="test \n\n\n test"/>, it showed as:

And \n is not preserved in HTML:

As the doc said, I added renderWhitespace="true", maxLines="0":

renderWhitespace="false", maxLines="1":

What if I want to show "test \n\n\n test" ?
Failed to find design purpose for renderWhitespace in https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/Text.js#L184
For
<span>test \n\n\n test</span>, it showed in page:But for
<Text text="test \n\n\n test"/>, it showed as:And
\nis not preserved in HTML:As the doc said, I added
renderWhitespace="true", maxLines="0":renderWhitespace="false", maxLines="1":What if I want to show "test \n\n\n test" ?
Failed to find design purpose for
renderWhitespacein https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/Text.js#L184