Submitter: Tom Jacob
Email: t5jacob@edu.uwaterloo.ca
Hi,
I have the following code:
"
int get_max_num(const int k)
{
const int read_num = readnat();
if(read_num == -1)
return k;
else if(read_num > k)
return get_max_num(read_num);
else
return get_max_num(k);
}"
but when I hit ctrl+I to indent, the final (and only) else doesn't get left-justified.
This is probably a problem with the CodeMirror indenting plugin. We'll take a look, but I will close this for now as it's not high on our priority list right now.
Submitter: Tom Jacob Email: t5jacob@edu.uwaterloo.ca Hi,
I have the following code: " int get_max_num(const int k) { const int read_num = readnat(); if(read_num == -1) return k; else if(read_num > k) return get_max_num(read_num); else return get_max_num(k); }"
but when I hit ctrl+I to indent, the final (and only) else doesn't get left-justified.