Author Topic: Line breaking in Source Code Formatter (13.12)  (Read 3660 times)

Offline Navarro

  • Single posting newcomer
  • *
  • Posts: 2
Line breaking in Source Code Formatter (13.12)
« on: January 11, 2014, 06:11:37 am »
I am not sure if this is a bug or intended behavior.

But I set my lines to break at 80 characters, and it appears that it doesn't count spaces at the beginning of the line, and just starts counting with the first non-space character.

Example:

Quote
void someFunction()
{
    std::cout << "This line is supposed to be too long to be printed";  /*
^^ these spaces are not counted */
}

If the of this line starting at "s" in "std" and finishing with a semicolon is 82 characters long, it will not be broken until it is 84 characters long

However this breaks correctly

Quote
void someFunction()
{
std::cout << "This line is supposed to be too long to be printed";  /*
}