adding extra new lines when dealing with code-block
csbenjamin opened this issue · 3 comments
csbenjamin commented
When using the delta:
[
{
"insert": "handler(range: { index: Number, length: Number },"
},
{
"attributes": {
"code-block": true
},
"insert": "\n"
},
{
"insert": " oldRange: { index: Number, length: Number },"
},
{
"attributes": {
"code-block": true
},
"insert": "\n"
},
{
"insert": " source: String)"
},
{
"attributes": {
"code-block": true
},
"insert": "\n"
}
]
the expected behavior is to get something like:
<pre>handler(range: { index: Number, length: Number },
oldRange: { index: Number, length: Number },
source: String)
</pre>
but instead we are getting this:
<pre>handler(range: { index: Number, length: Number },
oldRange: { index: Number, length: Number },
source: String)</pre>
Am I missing something?
nozer commented
I will look at it during weekend(tomorrow)
nozer commented
Fixed and pushed as release v0.5.7
csbenjamin commented
Thanks