Skip to content

Commit c9fae8d

Browse files
authored
Merge pull request #40 from ccap/upstream-preserve-indentation
Upstream preserve indentation
2 parents c88d2f1 + 45f18af commit c9fae8d

File tree

3 files changed

+7
-7028
lines changed

3 files changed

+7
-7028
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"url": "https://github.com/jpuri/html-to-draftjs.git"
88
},
99
"devDependencies": {
10+
"babel-core": "^6.26.0",
11+
"babel-loader": "^7.1.2",
12+
"babel-preset-env": "^1.6.1",
1013
"babel-preset-es2015": "^6.24.1",
1114
"babel-preset-react": "^6.24.1",
1215
"babel-preset-stage-0": "^6.24.1",

src/library/getBlockData.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export default function getBlockData(
77
return new Map({
88
'text-align': node.style.textAlign,
99
})
10+
} else if (node.style.marginLeft) {
11+
return new Map({
12+
'margin-left': node.style.marginLeft,
13+
})
1014
}
1115
return undefined;
1216
}

0 commit comments

Comments
 (0)