Skip to content

Commit 9c552f0

Browse files
committed
Do not add space after ':' in CSS styles.
1 parent 7eeb866 commit 9c552f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/source/CssStyleFormatter.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class CssStyleFormatter {
9595
attributes.removeAttribute(STYLE_ATTRIBUTE)
9696
} else {
9797
newStyle = newStyle.replace(";".toRegex(), "; ")
98-
newStyle = newStyle.replace(":".toRegex(), ": ")
9998
attributes.setValue(STYLE_ATTRIBUTE, newStyle.trim())
10099
}
101100
}
@@ -131,7 +130,7 @@ class CssStyleFormatter {
131130

132131
var style = ""
133132
mergedArray.forEach({
134-
style = style + it.replace(":", ": ") + "; "
133+
style = style + it + ";"
135134
})
136135
return style.trimEnd()
137136
}

0 commit comments

Comments
 (0)