AztecEditor-Android
AztecEditor-Android copied to clipboard
Complex inline css styles didn't pass test
trafficstars
Expected
test passed testStyleAttributePresence
Observed
test failed testStyleAttributePresence when I change the HTML with this:
private val HTML = "<b style=\"name:value value value value;\">bold</b>"
expected: value value value value
actual: valuevaluevaluevalue
An example in real life can be: margin:0 0 0 3px;
Reproduced
- Change HTML variable to this
private val HTML = "<b style=\"name:value value value value;\">bold</b>" - Run
testStyleAttributePresencetest - Test failed
Tested
Local Tests
The solution I can give is to remove this line
replace("\\s".toRegex(), "")
from getMatcher in CssStyleFormatter but I don't know If that will break something