AztecEditor-Android icon indicating copy to clipboard operation
AztecEditor-Android copied to clipboard

Complex inline css styles didn't pass test

Open danieltigse opened this issue 7 years ago • 1 comments
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

  1. Change HTML variable to this private val HTML = "<b style=\"name:value value value value;\">bold</b>"
  2. Run testStyleAttributePresence test
  3. Test failed

Tested

Local Tests

danieltigse avatar Jun 26 '18 21:06 danieltigse

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

danieltigse avatar Jun 26 '18 21:06 danieltigse