Skip to content

Commit

Permalink
do not normalized before writing
Browse files Browse the repository at this point in the history
fix #468
  • Loading branch information
randy3k committed Feb 7, 2024
1 parent ed75b58 commit b0304f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radian/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,18 @@ def write_console_ex(buf, otype):

if not write_console_ex:
def write_console_ex(buf, otype):
buf = normalize(buf)
if otype == 0:
if not SUPPRESS_STDOUT:
output.write_raw(buf)
output.flush()
buf = normalize(buf)
if buf:
TERMINAL_CURSOR_AT_BEGINNING[0] = buf.endswith("\n")
else:
if not SUPPRESS_STDERR:
output.write_raw(stderr_format.format(buf))
output.flush()
buf = normalize(buf)
if buf:
TERMINAL_CURSOR_AT_BEGINNING[0] = buf.endswith("\n")

Expand Down

0 comments on commit b0304f4

Please sign in to comment.