Skip to content

Commit

Permalink
Fix line-level styles
Browse files Browse the repository at this point in the history
Don't accidentally break out of a group when a line has many inline styles
  • Loading branch information
daguej committed Jun 16, 2015
1 parent 6359f07 commit d14df35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function convert(ops) {
} else {

for (var j = 0; j < lines.length; j++) {
if (group && ++group.distance >= 2) {
if (j > 0 && group && ++group.distance >= 2) {
group = null;
}
applyStyles(op.attributes, ops[i+1] && ops[i+1].attributes);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quill-render",
"version": "1.0.0",
"version": "1.0.1",
"description": "Renders quilljs deltas into HTML",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit d14df35

Please sign in to comment.