Skip to content

Conversation

hadley
Copy link
Member

@hadley hadley commented Jul 7, 2022

Fixes #1342. Closes #1343.

@zeehio I took a slightly different approach because the nbsp are only needed for the old style usage wrapping.

xy = "abcdef",
xyz = c(`word word word word` = "abcdef", `word word word` = "abcdef",
`word word word` = "abcdef", `word word word` = "abcdef")
xyz = c(`word word word word` = "abcdef", `word word word` = "abcdef", `word word word`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only looked good by coincidence before, because the C++ wrapping code counts bytes, not characters, and \u{A0} is two bytes.

@zeehio
Copy link

zeehio commented Jul 7, 2022

Great! For what is worth I reviewed the pull request and it looks good to me 😀🥳

Thank you very much!

@hadley hadley merged commit 4203764 into main Jul 7, 2022
@hadley hadley deleted the nbsp-usage branch July 7, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRAN Warning when Non-breaking space in default function argument value
2 participants