Skip to content

Commit 24177a7

Browse files
author
Daigo Matsubara
committed
markup fix
1 parent 8c0e536 commit 24177a7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/print.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void fprint_menu0(FILE *fp, struct emailinfo *email, int pos)
257257
int num = email->msgnum;
258258
int loc_cmp = (pos == PAGE_BOTTOM ? 3 : 4);
259259
char *ptr;
260-
char *id= (pos == PAGE_TOP) ? "option2" : "option3";
260+
char *id= (pos == PAGE_TOP) ? "options2" : "options3";
261261

262262
#ifdef HAVE_ICONV
263263
int tmplen;
@@ -1597,9 +1597,20 @@ int print_links_up(FILE *fp, struct emailinfo *email, int pos, int in_thread_fil
15971597
free(ptr);
15981598
}
15991599
}
1600-
fprintf(fp, " [ <a href=\"#options2\">%s</a> ]\n", lang[MSG_MORE_OPTIONS]);
1600+
switch(set_show_index_links){
1601+
case 0:
1602+
break;
1603+
case 1:
1604+
fprintf(fp, " [ %s (<a href=\"#options2\">top</a>, <a href=\"#options3\">bottom</a>) ]\n", lang[MSG_MORE_OPTIONS]);
1605+
break;
1606+
case 3:
1607+
fprintf(fp, " [ <a href=\"#options2\">%s</a> ]\n", lang[MSG_MORE_OPTIONS]);
1608+
break;
1609+
case 4:
1610+
fprintf(fp, " [ <a href=\"#options3\">%s</a> ]\n", lang[MSG_MORE_OPTIONS]);
1611+
break;
1612+
}
16011613
fprintf(fp, "</li>\n");
1602-
16031614

16041615
fprintf(fp, "<li>\n");
16051616
fprintf(fp, "<dfn>%s</dfn>:\n", lang[MSG_RELATED_MESSAGES]);

0 commit comments

Comments
 (0)