@cntrl-site/sdk-nextjs 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -30,7 +30,7 @@ class RichTextConverter {
|
|
|
30
30
|
const block = blocks[blockIndex];
|
|
31
31
|
const content = text.slice(block.start, block.end + 1);
|
|
32
32
|
const entities = (_a = block.entities.sort((a, b) => a.start - b.start)) !== null && _a !== void 0 ? _a : [];
|
|
33
|
-
if (content.length ===
|
|
33
|
+
if (content.length === 1) {
|
|
34
34
|
const id = `rt_${richText.id}_br_${blockIndex}`;
|
|
35
35
|
root.push((0, jsx_runtime_1.jsx)("div", { className: id, children: (0, jsx_runtime_1.jsx)("br", {}) }, id));
|
|
36
36
|
layouts.forEach(l => {
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export class RichTextConverter {
|
|
|
58
58
|
const block = blocks[blockIndex];
|
|
59
59
|
const content = text.slice(block.start, block.end + 1);
|
|
60
60
|
const entities = block.entities!.sort((a, b) => a.start - b.start) ?? [];
|
|
61
|
-
if (content.length ===
|
|
61
|
+
if (content.length === 1) {
|
|
62
62
|
const id = `rt_${richText.id}_br_${blockIndex}`;
|
|
63
63
|
root.push(<div key={id} className={id}><br /></div>);
|
|
64
64
|
layouts.forEach(l => {
|
|
Binary file
|