raynardj commited on
Commit
27a2422
1 Parent(s): 2fc06de

wrapping pre

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def fetch_from_df(sub_paths: str = ""):
121
  def show_filepath(filepath: str):
122
  text = fetch_file(filepath)
123
  c.markdown(
124
- f"""<pre style='max-height:300px;overflow-y:auto'>{text}</pre>""", unsafe_allow_html=True)
125
 
126
  if st.sidebar.selectbox(label="何以尋跡 How to search",options=["以類尋書 category","書名求書 search"])=="以類尋書 category":
127
 
121
  def show_filepath(filepath: str):
122
  text = fetch_file(filepath)
123
  c.markdown(
124
+ f"""<pre style='white-space:pre-wrap;max-height:300px;overflow-y:auto'>{text}</pre>""", unsafe_allow_html=True)
125
 
126
  if st.sidebar.selectbox(label="何以尋跡 How to search",options=["以類尋書 category","書名求書 search"])=="以類尋書 category":
127