CLion moving space into new line


When using printf with a space at the end of the string such as this:

and running it:

it transfers the space to the start of the next line that's printed.

This happens only in the Run tab and works normally when run from the Terminal tab

Any help appreciated!

Comment actions Permalink

Hi! Are you on Windows? Do you use MinGW?

Comment actions Permalink

Yes, I use Windows 10 Pro x64 and here's my toolchains:

Comment actions Permalink

There are some problems with displaying the output in case of MinGW, for example, or Feel free to comment or upvote in order to get updates. See if you are not familiar with YouTrack.

You can try disabling PTY (Help | Find Action > type "Registry" > open Registry > find and disable the run.processes.with.pty option) or consider using Cygwin.


Please sign in to leave a comment.