Skip to content

Commit f402a83

Browse files
author
maechler
committed
less vertical space waste between \item s of \describe etc
git-svn-id: https://svn.r-project.org/R/trunk@88160 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 3ada9c3 commit f402a83

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/NEWS.Rd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
macros \emph{may} generate correct code (but not always) and always
4747
results in confusing-to-read code.
4848
%% Someone defined 'true' as -1, for example.
49+
50+
\item The cascaded stylesheet \file{R.css} now adds less vertical
51+
white space when rendering Rd files' \verb{\itemize},
52+
\verb{\enumerate}, and \verb{\describe} list \verb{\item}s to HTML.
53+
54+
Where \R is used via extensive \abbr{IDE}s such as \command{RStudio},
55+
their maintainers may need to adapt \file{R.css} files accordingly.
4956
}
5057
}
5158

doc/html/R.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.rimage img { /* from knitr - for examples and demos */
1212
width: 96%;
1313
margin-left: 2%;
14-
}
14+
}
1515

1616
.katex { font-size: 1.1em; }
1717

@@ -80,6 +80,15 @@ h6 {
8080
font-style: italic;
8181
}
8282

83+
/* want small paragraph margins when used _inside_ *.Rd \item <......>
84+
i.e., <dd> ... </dd> and and <li> .... </li> : */
85+
dd p, li p {
86+
margin-top: 0px;
87+
margin-bottom: 0px;
88+
padding-top: 0.4ex;
89+
padding-bottom: 0.4ex;
90+
}
91+
8392
img.toplogo {
8493
width: 4em;
8594
vertical-align: middle;

0 commit comments

Comments
 (0)