Skip to content

Commit 7c79a33

Browse files
committed
align
1 parent 083f53f commit 7c79a33

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

src/bbcode_colors.c

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,36 @@ typedef struct style_color_s {
1414
ic_color_t color;
1515
} style_color_t;
1616

17-
#define IC_HTML_COLOR_COUNT (169)
17+
#define IC_HTML_COLOR_COUNT (172)
1818

1919
// ordered list of HTML color names (so we can use binary search)
2020
static style_color_t html_colors[IC_HTML_COLOR_COUNT+1] = {
21-
{ "aliceblue", IC_RGB(0xf0f8ff) },
22-
{ "ansi-aqua", IC_ANSI_AQUA },
23-
{ "ansi-black", IC_ANSI_BLACK },
24-
{ "ansi-blue", IC_ANSI_BLUE },
21+
{ "aliceblue", IC_RGB(0xf0f8ff) },
22+
{ "ansi-aqua", IC_ANSI_AQUA },
23+
{ "ansi-black", IC_ANSI_BLACK },
24+
{ "ansi-blue", IC_ANSI_BLUE },
2525
{ "ansi-cyan", IC_ANSI_CYAN },
2626
{ "ansi-darkgray", IC_ANSI_DARKGRAY },
27-
{ "ansi-default",IC_ANSI_DEFAULT },
28-
{ "ansi-fuchsia",IC_ANSI_FUCHSIA },
29-
{ "ansi-gray", IC_ANSI_GRAY },
30-
{ "ansi-green", IC_ANSI_GREEN },
27+
{ "ansi-darkgrey", IC_ANSI_DARKGRAY },
28+
{ "ansi-default", IC_ANSI_DEFAULT },
29+
{ "ansi-fuchsia", IC_ANSI_FUCHSIA },
30+
{ "ansi-gray", IC_ANSI_GRAY },
31+
{ "ansi-green", IC_ANSI_GREEN },
32+
{ "ansi-grey", IC_ANSI_GRAY },
3133
{ "ansi-lightgray", IC_ANSI_LIGHTGRAY },
32-
{ "ansi-lime" , IC_ANSI_LIME },
34+
{ "ansi-lightgrey", IC_ANSI_LIGHTGRAY },
35+
{ "ansi-lime" , IC_ANSI_LIME },
3336
{ "ansi-magenta", IC_ANSI_MAGENTA },
34-
{ "ansi-maroon", IC_ANSI_MAROON },
35-
{ "ansi-navy", IC_ANSI_NAVY },
36-
{ "ansi-olive", IC_ANSI_OLIVE },
37-
{ "ansi-purple", IC_ANSI_PURPLE },
38-
{ "ansi-red", IC_ANSI_RED },
39-
{ "ansi-silver", IC_ANSI_SILVER },
40-
{ "ansi-teal", IC_ANSI_TEAL },
41-
{ "ansi-white", IC_ANSI_WHITE },
42-
{ "ansi-yellow", IC_ANSI_YELLOW },
43-
{ "antiquewhite", IC_RGB(0xfaebd7) },
37+
{ "ansi-maroon", IC_ANSI_MAROON },
38+
{ "ansi-navy", IC_ANSI_NAVY },
39+
{ "ansi-olive", IC_ANSI_OLIVE },
40+
{ "ansi-purple", IC_ANSI_PURPLE },
41+
{ "ansi-red", IC_ANSI_RED },
42+
{ "ansi-silver", IC_ANSI_SILVER },
43+
{ "ansi-teal", IC_ANSI_TEAL },
44+
{ "ansi-white", IC_ANSI_WHITE },
45+
{ "ansi-yellow", IC_ANSI_YELLOW },
46+
{ "antiquewhite", IC_RGB(0xfaebd7) },
4447
{ "aqua", IC_RGB(0x00ffff) },
4548
{ "aquamarine", IC_RGB(0x7fffd4) },
4649
{ "azure", IC_RGB(0xf0ffff) },

test/test_colors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int main()
115115
write_html_colors();
116116

117117
// bbcodes
118-
ic_print( "[b]bold [i]bold and italic[/i] [yellow on blue]yellow on blue in bold[/][/b] default\n");
118+
ic_print( "\n[b]bold [i]bold and italic[/i] [yellow on blue]yellow on blue in bold[/][/b] default\n");
119119

120120
ic_style_def("em", "underline ansi-olive");
121121
ic_style_start("i");

0 commit comments

Comments
 (0)