pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
dafb323
)
use plus instead of backticks in unordered lists - looks nicer
author
Michael Göhler
<somebody.here@gmx.de>
Mon, 13 Oct 2014 21:17:43 +0000
(23:17 +0200)
committer
Michael Göhler
<somebody.here@gmx.de>
Mon, 13 Oct 2014 21:17:43 +0000
(23:17 +0200)
src/viewer.c
patch
|
blob
|
history
diff --git
a/src/viewer.c
b/src/viewer.c
index
4aec11e
..
1946e99
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-418,7
+418,7
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
char prompt[13];
strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " ");
strcpy(&prompt[4], CHECK_BIT(line->bits, IS_UNORDERED_LIST_2)? " | " : " ");
char prompt[13];
strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " ");
strcpy(&prompt[4], CHECK_BIT(line->bits, IS_UNORDERED_LIST_2)? " | " : " ");
- strcpy(&prompt[8],
line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_3)? " +- " : " `
- ");
+ strcpy(&prompt[8],
" +
- ");
wprintw(window,
"%s", prompt);
wprintw(window,
"%s", prompt);
@@
-429,7
+429,7
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
offset = next_nonblank(line->text, 0);
char prompt[9];
strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " ");
offset = next_nonblank(line->text, 0);
char prompt[9];
strcpy(&prompt[0], CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)? " | " : " ");
- strcpy(&prompt[4],
line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_2)? " +- " : " `
- ");
+ strcpy(&prompt[4],
" +
- ");
wprintw(window,
"%s", prompt);
wprintw(window,
"%s", prompt);
@@
-439,7
+439,7
@@
void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
} else if(CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)) {
offset = next_nonblank(line->text, 0);
char prompt[5];
} else if(CHECK_BIT(line->bits, IS_UNORDERED_LIST_1)) {
offset = next_nonblank(line->text, 0);
char prompt[5];
- strcpy(&prompt[0],
line->next && CHECK_BIT(line->next->bits, IS_UNORDERED_LIST_1)? " +- " : " `
- ");
+ strcpy(&prompt[0],
" +
- ");
wprintw(window,
"%s", prompt);
wprintw(window,
"%s", prompt);