From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 901d22e0 for ; Mon, 23 Apr 2018 19:37:23 -0500 (EST) Date: Mon, 23 Apr 2018 19:37:23 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: replace my vague and idiosyncratic term "selflink" with the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: <7eff03d5fb79798b@fantadrom.bsd.lv> Log Message: ----------- replace my vague and idiosyncratic term "selflink" with the clearer and more usual "permalink"; suggested by John Gardner Modified Files: -------------- mandoc: mandoc.css mdoc_html.c man_html.c Revision Data ------------- Index: mandoc.css =================================================================== RCS file: /home/cvs/mandoc/mandoc/mandoc.css,v retrieving revision 1.22 retrieving revision 1.23 diff -Lmandoc.css -Lmandoc.css -u -p -r1.22 -r1.23 --- mandoc.css +++ mandoc.css @@ -14,7 +14,7 @@ ul, ol, dl { margin-top: 0em; margin-bottom: 0em; } li, dt { margin-top: 1em; } -a.selflink { border-bottom: thin dotted; +a.permalink { border-bottom: thin dotted; color: inherit; font: inherit; text-decoration: inherit; } Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v retrieving revision 1.296 retrieving revision 1.297 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.296 -r1.297 --- mdoc_html.c +++ mdoc_html.c @@ -516,7 +516,7 @@ mdoc_sh_pre(MDOC_ARGS) id = html_make_id(n); print_otag(h, TAG_H1, "cTi", "Sh", id); if (id != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); free(id); break; case ROFFT_BODY: @@ -540,7 +540,7 @@ mdoc_ss_pre(MDOC_ARGS) id = html_make_id(n); print_otag(h, TAG_H2, "cTi", "Ss", id); if (id != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); free(id); return 1; } @@ -551,7 +551,7 @@ mdoc_fl_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_B, "cTi", "Fl", id); free(id); @@ -571,7 +571,7 @@ mdoc_cm_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_B, "cTi", "Cm", id); free(id); return 1; @@ -1070,7 +1070,7 @@ mdoc_dv_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_CODE, "cTi", "Dv", id); free(id); return 1; @@ -1082,7 +1082,7 @@ mdoc_ev_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_CODE, "cTi", "Ev", id); free(id); return 1; @@ -1100,7 +1100,7 @@ mdoc_er_pre(MDOC_ARGS) html_make_id(n) : NULL; if (id != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_CODE, "cTi", "Er", id); free(id); return 1; @@ -1451,7 +1451,7 @@ mdoc_ic_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_B, "cTi", "Ic", id); free(id); return 1; @@ -1508,7 +1508,7 @@ mdoc_ms_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_B, "cTi", "Ms", id); free(id); return 1; @@ -1549,7 +1549,7 @@ mdoc_no_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_SPAN, "ci", "No", id); free(id); return 1; @@ -1561,7 +1561,7 @@ mdoc_li_pre(MDOC_ARGS) char *id; if ((id = cond_id(n)) != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); print_otag(h, TAG_CODE, "ci", "Li", id); free(id); return 1; Index: man_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/man_html.c,v retrieving revision 1.147 retrieving revision 1.148 diff -Lman_html.c -Lman_html.c -u -p -r1.147 -r1.148 --- man_html.c +++ man_html.c @@ -431,7 +431,7 @@ man_SH_pre(MAN_ARGS) id = html_make_id(n); print_otag(h, TAG_H1, "cTi", "Sh", id); if (id != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); free(id); } return 1; @@ -501,7 +501,7 @@ man_SS_pre(MAN_ARGS) id = html_make_id(n); print_otag(h, TAG_H2, "cTi", "Ss", id); if (id != NULL) - print_otag(h, TAG_A, "chR", "selflink", id); + print_otag(h, TAG_A, "chR", "permalink", id); free(id); } return 1; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv