I often have to present paragraphs of text to users. I'm ok with what I know about presenting the text to the user (usually using \n
or text wrapping to make it pleasing on the user side) but is there a way to have carriage returns in my actual code without \n
a = "this is a really long line of text that i need to show to the user. this is a really long line of text that i need to show to the user. this is a really long line of text that i need to show to the user. this is a really long line of text that i need to show to the user."
b = "this is a really long line of text that i need to show to the user.\n
this is a really long line of text that i need to show to the user.\n
this is a really long line of text that i need to show to the user.\n"
So my goal is to break 'a' into aesthetically pleasing chunks in my code but still use wordwrap for displaying the text to the user. The only way I know to do that is shown in 'b' but that does not work with word wrapping