Skip to content

Commit

Permalink
format integrish to stirp white space
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 22, 2024
1 parent 9172cbc commit 34eac84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/format_numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ format_numeric <- function(value, num_suffix, digits, num_mark_big, num_mark_dec
num_zero = num_zero,
num_fmt = num_fmt)
# integer
} else if (isTRUE(check_integerish(value)) && !is.null(digits)) {
} else if (isTRUE(check_integerish(value))) {
out <- format_integer(value,
digits = digits,
num_mark_big = num_mark_big,
Expand Down
8 changes: 4 additions & 4 deletions inst/tinytest/_tinysnapshot/html-missing_value.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@
<tbody>
<tr>
<td>-</td>
<td> 3</td>
<td>3</td>
</tr>
<tr>
<td> 1</td>
<td>1</td>
<td>-</td>
</tr>
<tr>
<td> 2</td>
<td> 5</td>
<td>2</td>
<td>5</td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ block[ // start block
),

// tinytable cell content after
[-], [ 3],
[ 1], [-],
[ 2], [ 5],
[-], [3],
[1], [-],
[2], [5],

// tinytable footer after

Expand Down

0 comments on commit 34eac84

Please sign in to comment.