Skip to content

Commit a312f23

Browse files
committed
Add white-space for params
1 parent e605b55 commit a312f23

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

static/styles/jsdoc.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ footer {
390390
margin: 1em 0;
391391
}
392392

393+
.params .type {
394+
white-space: nowrap;
395+
}
396+
397+
.params code {
398+
white-space: pre;
399+
}
400+
393401
.params td, .params .name, .props .name, .name code {
394402
color: #4D4E53;
395403
font-family: Consolas, Monaco, 'Andale Mono', monospace;

tmpl/params.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<?js if (params.hasDefault) {?>
109109
<td class="default">
110110
<?js if (typeof param.defaultvalue !== 'undefined') { ?>
111-
<?js= self.htmlsafe(param.defaultvalue) ?>
111+
<code><?js= self.htmlsafe(param.defaultvalue) ?></code>
112112
<?js } ?>
113113
</td>
114114
<?js } ?>

tmpl/properties.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<?js if (props.hasDefault) {?>
9494
<td class="default">
9595
<?js if (typeof prop.defaultvalue !== 'undefined') { ?>
96-
<?js= self.htmlsafe(prop.defaultvalue) ?>
96+
<code><?js= self.htmlsafe(prop.defaultvalue) ?></code>
9797
<?js } ?>
9898
</td>
9999
<?js } ?>

0 commit comments

Comments
 (0)