Spaces:
Runtime error
Runtime error
wrapping pre
Browse files
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 |
|