draft-convert icon indicating copy to clipboard operation
draft-convert copied to clipboard

Empty space in block text brakes rendering

Open harlandjp opened this issue 8 years ago • 1 comments

Hi guys

Having "text": " " in a block (Empty space in the value), makes convertToHTML method return empty on version 1.4.9.

Example block data below:

{
    "data" : {},
    "entityRanges" : [ 
        {
            "key" : 0,
            "length" : 1,
            "offset" : 0
        }
    ],
    "inlineStyleRanges" : [],
    "depth" : 0,
    "type" : "unstyled",
    "text" : " ",
    "key" : "6k1g"
}, 

This didn't happen on prior versions. Any ideas?

harlandjp avatar Aug 23 '17 13:08 harlandjp

Can you elaborate a bit more on what precisely you're seeing? By breaking rendering do you mean an exception being thrown? An example test asserting an expected output would be helpful.

benbriggs avatar May 09 '18 20:05 benbriggs