Skip to content

Commit 33eb74e

Browse files
committed
Removed spacing around curly braces in CSS rules. Updated tests.
We could maybe add a prettify option down the road. Juggling methods around to cater for adding styles to (any) store. Also making return values consistent.
1 parent 5e3669e commit 33eb74e

File tree

4 files changed

+181
-139
lines changed

4 files changed

+181
-139
lines changed

packages/style-engine/class-wp-style-engine-css-rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ public function get_selector() {
110110
* @return string
111111
*/
112112
public function get_css() {
113-
return $this->get_selector() . ' { ' . $this->declarations->get_declarations_string() . ' }';
113+
return $this->get_selector() . ' {' . $this->declarations->get_declarations_string() . '}';
114114
}
115115
}

0 commit comments

Comments
 (0)