aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-04-24 00:36:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-04-24 00:36:52 +0000
commit6a69699c15f061c592b60c0fce329c88307113b1 (patch)
tree8abbc9a0f61c29065fb7ca95dc111dd4e4424a09
parent6bba39783f25286f8494b8d213f1e163db47b54a (diff)
downloadmandoc-6a69699c15f061c592b60c0fce329c88307113b1.tar.gz
mandoc-6a69699c15f061c592b60c0fce329c88307113b1.tar.zst
mandoc-6a69699c15f061c592b60c0fce329c88307113b1.zip
replace my vague and idiosyncratic term "selflink"
with the clearer and more usual "permalink"; suggested by John Gardner <gardnerjohng at gmail dot com>
-rw-r--r--man_html.c6
-rw-r--r--mandoc.css4
-rw-r--r--mdoc_html.c24
3 files changed, 17 insertions, 17 deletions
diff --git a/man_html.c b/man_html.c
index f7942ddd..6aee4ffe 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.147 2018/04/13 16:28:07 schwarze Exp $ */
+/* $Id: man_html.c,v 1.148 2018/04/24 00:36:53 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;
diff --git a/mandoc.css b/mandoc.css
index 2a57a18f..c1657f99 100644
--- a/mandoc.css
+++ b/mandoc.css
@@ -1,4 +1,4 @@
-/* $Id: mandoc.css,v 1.22 2017/07/16 18:45:00 schwarze Exp $ */
+/* $Id: mandoc.css,v 1.23 2018/04/24 00:36:52 schwarze Exp $ */
/*
* Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
*/
@@ -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; }
diff --git a/mdoc_html.c b/mdoc_html.c
index 6d26f808..a6df4700 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.296 2018/04/13 16:28:07 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.297 2018/04/24 00:36:52 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;