raynardj commited on
Commit
9a74dff
1 Parent(s): 27a2422

wrapping pre

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -164,7 +164,7 @@ if st.sidebar.selectbox(label="何以尋跡 How to search",options=["以類尋
164
  text = fetch_file(filepath)
165
  # create markdown with max heights
166
  c.markdown(
167
- f"""<pre style='max-height:300px;overflow-y:auto'>{text}</pre>""", unsafe_allow_html=True
168
  )
169
  reset_path()
170
 
 
164
  text = fetch_file(filepath)
165
  # create markdown with max heights
166
  c.markdown(
167
+ f"""<pre style='white-space:pre-wrap;max-height:300px;overflow-y:auto'>{text}</pre>""", unsafe_allow_html=True
168
  )
169
  reset_path()
170