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
Is your feature request related to a problem? Please describe.
When writing tailwind classes, we often end up writing multiple classes per breakpoints. To keep things readable I tend to separate breakpoints specific rules by lines within the yml of an pattern.
Doing so leads to undesired line breaks within the html markup when we render this specific component:
Describe the solution you'd like
It would be nice to modify the output to eliminate undesired line breaks within html markup. Maybe we just need to modify the getPatternConfiguration function with an regression rule replace(/[\r\n]/gm, '');
Describe alternatives you've considered
I also tried to use |trim on the pattern_configuration when rendering the component with twig. I also tried to use the |replace filter but it doesnt allow regex out of the box.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When writing tailwind classes, we often end up writing multiple classes per breakpoints. To keep things readable I tend to separate breakpoints specific rules by lines within the yml of an pattern.
E.g.:
Doing so leads to undesired line breaks within the html markup when we render this specific component:
Describe the solution you'd like
It would be nice to modify the output to eliminate undesired line breaks within html markup. Maybe we just need to modify the getPatternConfiguration function with an regression rule
replace(/[\r\n]/gm, '');
Describe alternatives you've considered
I also tried to use
|trim
on thepattern_configuration
when rendering the component with twig. I also tried to use the|replace
filter but it doesnt allow regex out of the box.The text was updated successfully, but these errors were encountered: