Replies: 1 comment
-
If you want to keep the text styling the same as the rest of the text, use q.page['example'] = ui.form_card(
box='1 1 4 10',
items=[ui.text('<span style="white-space: pre">Text aaa</span>')]
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It was a good option to add a boolean parameter to ui.text that indicates that the content is pre-formated (with the default value to false).
I sugest this because the alternative is to put on the content parameter the usage of the html tag
<pre>
and with this usage the css style is not the same.Beta Was this translation helpful? Give feedback.
All reactions