judge0 / ide

✨ Simple, free and open-source online code editor.
https://ide.judge0.com
MIT License
818 stars 256 forks source link

[Syntax][Format] Opening Braces Misaligned #79

Open MarkMoretto opened 8 months ago

MarkMoretto commented 8 months ago

Issue -

When loading the online compiler for the first time, it appears that the demo program has misaligned the opening curly braces for functions, conditionals, etc.

They appear to be on the next line down, while most standards have them inline with the definition or initial clause.

Expect to see -

Web IDE load up with a C++ snippet in the standard format.

Actually seen -

The Web IDE appears to be creating less-readable code by placing opening curly braces on a line below where they should be.

Additional details -

Issue seen using a standard modern desktop web browser (eg - Firefox, Chrome).