Skip to content

Commit 377c3ef

Browse files
committed
pre-wrap for cell outputs
1 parent d01cbf4 commit 377c3ef

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

frontend/src/components/Chat.css

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ div.message.system div.avatar {
2424
background: #74a89b;
2525
}
2626

27+
.cell-output {
28+
white-space: pre-wrap
29+
}
30+
2731
div.message {
2832
padding: 1rem;
2933
border-bottom: rgba(0,0,0,.1);

frontend/src/components/Chat.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Message(props: {
3838
{text} {props.showLoader ? <div className="loader"></div> : null}
3939
</div>
4040
) : (
41-
<div dangerouslySetInnerHTML={{ __html: text }}></div>
41+
<div className="cell-output" dangerouslySetInnerHTML={{ __html: text }}></div>
4242
))}
4343
</div>
4444
</div>

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.10',
10+
version='0.42.11',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)