From 75e5193b1fd22d480c94871f606d659d6d1166d2 Mon Sep 17 00:00:00 2001 From: Nick Youngblut Date: Mon, 11 Mar 2024 22:03:17 +0000 Subject: [PATCH] added fixed-width text for stockholm display --- app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index e2a4487..361ba1c 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,9 @@ def get_image_as_base64(path): body * { font-family: 'IBM Plex Sans', sans-serif !important; } +code, pre { + font-family: 'Courier New', monospace !important; +} """ st.markdown(font_css, unsafe_allow_html=True) @@ -107,7 +110,7 @@ def get_image_as_base64(path): # stockholm st.markdown('##### STOCKHOLM') stockholm = st.session_state['brna'].format_stockholm() - st.text(stockholm) + st.markdown(f"```\n{stockholm}\n```") ## download link st.download_button( label="Download stockholm",