Newlines 'about' text in menu via set_page_config()?

Summary

The docs don’t explain this well, so I’ll ask here. I’ve added some text to the “About” menu item via set_page_config, and I’m a little puzzled about formatting. I’d like a few lines of text, but putting a \n in there doesn’t have the desired effect. How does one do this sort of thing?

Steps to reproduce

Code snippet:

menu_items = {
    'get help': 'https://helpme.sample.com',
    'About': 'My Cool App v1.0.0\nhttp://www.sample.com'
}

Use ' \n' for a soft return (that’s a double-space followed by \n). Use '\n\n' for a hard return.

So:

menu_items = {
    'get help': 'https://helpme.sample.com',
    'About': 'My Cool App v1.0.0  \nhttp://www.sample.com'
}
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.