Flatten a style to an inline string

style_flatten_to_inline(style)

Arguments

style

a named list of property/value pairs

Value

single string suitable for a style attribute on an element

Examples

if (FALSE) { style_flatten_to_line(list(color='black', border='1px')) # -> "color:black; border: 1px;" }