MCPcopy Create free account
hub / github.com/HubSpot/draft-convert / getWhitespaceChunk

Function getWhitespaceChunk

src/convertFromHTML.js:110–121  ·  view source on GitHub ↗
(inEntity)

Source from the content-addressed store, hash-verified

108}
109
110function getWhitespaceChunk(inEntity) {
111 const entities = new Array(1);
112 if (inEntity) {
113 entities[0] = inEntity;
114 }
115 return {
116 text: SPACE,
117 inlines: [OrderedSet()],
118 entities,
119 blocks: [],
120 };
121}
122
123function getSoftNewlineChunk(block, depth, flat = false, data = Map()) {
124 if (flat === true) {

Callers 1

genFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…