You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't figure out to make margin and padding work #100
OK, fair enough. But margin does not induce anything for top or bottom (it works for left and right fields) and does not create spacing between paragraphs marked by 2 spaces and \n:
It does in my hands when using the element_marquee(margin) setting. The padding in your example doesn't work because of aforementioned reason. I don't know how paragraph spacing ought to work, so I can't advise on that part.
You are right for the element_marquee(margin) setting. This adds some margin around the text box and works as expected. My understanding (and my hope) of the style setting was that it could set the spacing between paragraphs inside the text box.
Activity
teunbrand commentedon Dec 4, 2025
I think
element_marquee()replaces the padding with the margin setting, so thepaddingis out of commission in this context.xtimbeau commentedon Dec 4, 2025
OK, fair enough. But
margindoes not induce anything for top or bottom (it works for left and right fields) and does not create spacing between paragraphs marked by 2 spaces and\n:Created on 2025-12-04 with reprex v2.1.1
teunbrand commentedon Dec 4, 2025
It does in my hands when using the
element_marquee(margin)setting. Thepaddingin your example doesn't work because of aforementioned reason. I don't know how paragraph spacing ought to work, so I can't advise on that part.xtimbeau commentedon Dec 4, 2025
You are right for the
element_marquee(margin)setting. This adds some margin around the text box and works as expected. My understanding (and my hope) of the style setting was that it could set the spacing between paragraphs inside the text box.Fix r-lib#100