News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Line breaking in Source Code Formatter (13.12)

Started by Navarro, January 11, 2014, 06:11:37 AM

Previous topic - Next topic

Navarro

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";  /*
}