You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the assembly/nasm/x86 code block lost its formatting and shown as single line.
The corresponding JSON of the response:
{
"role": "assistant",
"content": "Here's a simple \"Hello, World!\" program in x86 assembly language for the NASM (Netwide Assembler) assembler:\n\n```nasm\nsection .data\n msg db 'Hello, World!', 0\n\nsection .text\n global _start\n\n_start:\n ; Print the message\n mov eax, 4 ; system call number for write\n mov ebx, 1 ; file descriptor (stdout)\n mov ecx, msg ; address of string to write\n mov edx, len ; length of string\n int 0x80 ; invoke operating system\n\n ; Exit the program\n mov eax, 1 ; system call number for exit\n xor ebx, ebx ; return code (0)\n int 0x80 ; invoke operating system\n\nsection .data\nlen equ $-msg ; calculate length of string\n```\n\n...."
},
Another examples:
And again, a lot of \n in original responce are lost in code block.
The text was updated successfully, but these errors were encountered:
GrAndAG
changed the title
Code multiline formatting is lost for several (non-supported?) languages
Multiline formatting of code block is lost for several (non-supported?) languages
May 31, 2024
It's ok if a language is not supported and rendered without syntax highlighting. But anyway it has to be displayed "as is" at least (preserve multiline formatting).
For example, the
assembly
/nasm
/x86
code block lost its formatting and shown as single line.The corresponding JSON of the response:
Another examples:
And again, a lot of
\n
in original responce are lost in code block.The text was updated successfully, but these errors were encountered: