Skip to content

Commit 467aa6c

Browse files
committed
Adjust the box padding
1 parent 7d18746 commit 467aa6c

File tree

10 files changed

+571
-571
lines changed

10 files changed

+571
-571
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC = gcc
2-
VERSION = 2.0.3
2+
VERSION = 2.0.4
33
CFLAGS = -Wall -Wextra -O2 -std=c11 -D_XOPEN_SOURCE=700 -DSEQDIA_VERSION="\"$(VERSION)\""
44

55
# Main binary

src/renderer/renderer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static const RenderChars ASCII_CHARS = {
9393
};
9494

9595
enum {
96-
BOX_PADDING = 1,
96+
BOX_PADDING = 2,
9797
MIN_BOX_WIDTH = 3,
9898
BASE_GAP = 1,
9999
MSG_PADDING = 2,
@@ -207,7 +207,7 @@ static void expand_gaps(Layout *layout, size_t left, size_t right,
207207
layout->gaps[j] += per_gap + (j - left < remainder ? 1 : 0);
208208
}
209209
} else {
210-
layout->widths[left] += extra * 2;
210+
layout->gaps[left] += extra;
211211
}
212212
}
213213

tests/fixtures/complex-advanced.ascii.out

Lines changed: 83 additions & 83 deletions
Large diffs are not rendered by default.

tests/fixtures/complex-advanced.utf8.out

Lines changed: 83 additions & 83 deletions
Large diffs are not rendered by default.

tests/fixtures/complex-options.ascii.out

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

tests/fixtures/complex-options.utf8.out

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

tests/fixtures/notes.ascii.out

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
,-----. ,---. ,-----.
2-
|Alice| |Bob| |Carol|
3-
`-----' `---' `-----'
4-
| | |
5-
+===========+| | |
6-
| left note || | |
7-
+-----------+| | |
8-
| | |
9-
| |+============+ |
10-
| || right note | |
11-
| |+------------+ |
12-
| | |
13-
+===========+ | |
14-
| over note | | |
15-
+-----------+ | |
16-
| | |
17-
+=======+ | |
18-
| multi | | |
19-
| line | | |
20-
+-------+ | |
21-
| | |
22-
+=============+| hello |+==============+ |
23-
| inline left ||<------------+| inline right | |
24-
+-------------+| |+--------------+ |
25-
| | |
26-
| | |
27-
| | |
1+
,-------. ,-----. ,-------.
2+
| Alice | | Bob | | Carol |
3+
`-------' `-----' `-------'
4+
| | |
5+
+===========+| | |
6+
| left note || | |
7+
+-----------+| | |
8+
| | |
9+
| |+============+ |
10+
| || right note | |
11+
| |+------------+ |
12+
| | |
13+
+===========+ | |
14+
| over note | | |
15+
+-----------+ | |
16+
| | |
17+
+=======+ | |
18+
| multi | | |
19+
| line | | |
20+
+-------+ | |
21+
| | |
22+
+=============+| hello |+==============+ |
23+
| inline left ||<------------+| inline right | |
24+
+-------------+| |+--------------+ |
25+
| | |
26+
| | |
27+
| | |

tests/fixtures/notes.utf8.out

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
╭─────╮ ╭───╮ ─────╮
2-
Alice│ │Bob│ Carol│
3-
╰──┬──╯ ╰─┬─ ╰────╯
4-
┆ ┆ ┆
5-
╒═══════════╕┆ ┆ ┆
6-
│ left note │┆ ┆ ┆
7-
└───────────┘┆ ┆ ┆
8-
┆ ┆ ┆
9-
┆ ┆╒════════════╕ ┆
10-
┆ ┆│ right note │ ┆
11-
┆ ┆└────────────┘ ┆
12-
┆ ┆ ┆
13-
╒═══════════╕ ┆ ┆
14-
│ over note │ ┆ ┆
15-
└───────────┘ ┆ ┆
16-
┆ ┆ ┆
17-
╒═══════╕ ┆ ┆
18-
│ multi │ ┆ ┆
19-
│ line │ ┆ ┆
20-
└───────┘ ┆ ┆
21-
┆ ┆ ┆
22-
╒═════════════╕┆ hello ┆╒══════════════╕ ┆
23-
│ inline left │┆◀────────────┤│ inline right │ ┆
24-
└─────────────┘┆ ┆└──────────────┘ ┆
25-
┆ ┆ ┆
26-
┆ ┆ ┆
27-
┆ ┆ ┆
1+
╭───────╮ ╭─────╭───────╮
2+
Alice │ Bob │ Carol
3+
╰──┬──╰──┬──╯ ╰───┬───╯
4+
┆ ┆
5+
╒═══════════╕┆ ┆
6+
│ left note │┆ ┆
7+
└───────────┘┆ ┆
8+
┆ ┆
9+
┆ ┆╒════════════╕
10+
┆ ┆│ right note │
11+
┆ ┆└────────────┘
12+
┆ ┆
13+
╒═══════════╕ ┆
14+
│ over note │ ┆
15+
└───────────┘ ┆
16+
┆ ┆
17+
╒═══════╕ ┆
18+
│ multi │ ┆
19+
│ line │ ┆
20+
└───────┘ ┆
21+
┆ ┆
22+
╒═════════════╕┆ hello ┆╒══════════════╕
23+
│ inline left │┆◀────────────┤│ inline right │
24+
└─────────────┘┆ ┆└──────────────┘
25+
┆ ┆
26+
┆ ┆
27+
┆ ┆

0 commit comments

Comments
 (0)