blob: 9c7c935147d8003416a2c822b0f1f838d231f8e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* $NetBSD: opt_bap_sob.c,v 1.5 2023/05/11 18:13:55 rillig Exp $ */
/*
* Before 2023-05-11, the combination of -bap and -sob, which occurs in the
* example indent.pro from NetBSD, removed the empty line above the
* separator. Seen in games/cgram/cgram.c.
*/
//indent input
void
function1(void)
{
}
///// C99 separator /////
void
function2(void)
{
}
/* C block separator */
void
function3(void)
{
}
//indent end
//indent run-equals-input -bap -sob
/*
* XXX: Strangely, the option '-nbap' keeps the empty lines after the
* function bodies. That's exactly the opposite of the behavior that's
* described in the manual.
*/
//indent run-equals-input -nbap -sob
/*
* Without '-sob', the option '-bap' works as intended.
*/
//indent run-equals-input -bap
|