Hey so annoying small problem I have with the rich text blocks in that we have a bunch of text elements that are driven from data tables, they quite often have line breaks already set from our designers for paragraphs etc. The issue is that we are now changing up to using the RichTextBlock for most of our Tooltips (I know it has a higher cost but the convenience of re-skinning UI during development and having the image insertion is worth it for us for now). So any linebreaks that are added currently need extra tags added but due to having a text object already I cant format based on linebreaks e.g
<Default>An old silent pond...
A frog jumps into the pond,
splash! Silence again.</>
Will render out in the rich text block exactly as you see it there, tags and all. To get the desired formatting we want we need to change each newline to be
<Default>An old silent pond...</>
<Default>A frog jumps into the pond,</>
<Default>splash! Silence again.</>
But currently we are not setting the formatting tags all from data, we instead are just wrapping the text in tags and displaying the first text block for some of our UI. What I am wondering is if there is a nice way to format text on linebreaks that I am missing, I cannot do any String operations as that would break the localisation flow for the text object(?) so have been thinking about making our designers wrap all our text objects in string replaceable tags,
<{0}>An old silent pond...</>
<{0}>A frog jumps into the pond,</>
<{0}>splash! Silence again.</>
Essentially reserving the {0} index for our formatting setting. But not sure if this is a good or bad Idea if we later decide we don’t need the more expensive RichTextBlocks and settle on some nicely formatted TextBlock objects we are going to need to then strip out all these tags, not sure on a good solution here, so taking any suggestions for approaches people have had with this kind of setup.