|
From: | Mohammed Sadiq |
Subject: | bug#60496: 29.0.60; c-ts-mode: Broken indentation with linux style conditionals |
Date: | Tue, 03 Jan 2023 14:39:52 +0530 |
On 2023-01-03 03:59, Yuan Fu wrote:
Mohammed Sadiq <sadiq@sadiqpk.org> writes:Indentation of the following C code with linux style is broken: int main (void) { if (a) { func_a (); } else if (b) { func_b (); } else { func_c (); } }Thanks. I’m not familiar with the linux style, is the problem with the closing brackets? Could you give me a correct example so I know exactly what’s wrong? Yuan
The expected indentation style for the given code (this one is provided by c-mode), with the default indentation values: int main (void) { if (a) { func_a (); } else if (b) { func_b (); } else { func_c (); } }
[Prev in Thread] | Current Thread | [Next in Thread] |