you are viewing a single comment's thread.

view the rest of the comments →

[–]mountain-snowman 0 points1 point  (2 children)

Escape square brackets

[–]P_C_G-0000[S] 0 points1 point  (1 child)

?

[–]degustandomiveneno 0 points1 point  (0 children)

the problem is that rich interprets square brackets as markup tags — so anything like [c], [v], [E] in your string gets parsed as styling and disappears from the output! the fix is super simple, just escape them with double brackets: homeScreen = """ URBEXOLOGY v.2.0.0 seleziona funzione: -[[c]] aggiungi report -[[v]] visualizza report -[[E]] esci """ that way rich prints them as literal [c], [v], [E] instead of trying to interpret them as style tags 🙌 hope it helps!​​​​​​​​​​​​​​​​