Skip to content

Commit

Permalink
Merge pull request #438 from rstudio/whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wch authored Apr 3, 2023
2 parents f587137 + 83ccf03 commit 189a3ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install_requires =
contextvars>=2.4
websockets>=10.0
python-multipart
htmltools>=0.1.4.9001
htmltools>=0.1.4.9002
click>=8.0.3
markdown-it-py>=1.1.0
# This is needed for markdown-it-py. Without it, when loading shiny/ui/_markdown.py,
Expand Down
6 changes: 4 additions & 2 deletions shiny/ui/_input_check_radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def input_checkbox(
type="checkbox",
checked="checked" if value else None,
),
" ",
span(label),
),
class_="checkbox",
Expand Down Expand Up @@ -138,6 +139,7 @@ def _input_checkbox(
type="checkbox",
checked="checked" if value else None,
),
" ",
tags.label(label, class_="form-check-label", for_=resolve_id(id)),
class_=class_,
),
Expand Down Expand Up @@ -333,9 +335,9 @@ def _generate_option(
checked="checked" if checked else None,
)
if inline:
return tags.label(input, span(label), class_=type + "-inline")
return tags.label(input, " ", span(label), class_=type + "-inline")
else:
return div(tags.label(input, span(label)), class_=type)
return div(tags.label(input, " ", span(label)), class_=type)


def _normalize_choices(x: ChoicesArg) -> _Choices:
Expand Down

0 comments on commit 189a3ea

Please sign in to comment.