What happened?
Importing a .docx containing an online-inserted image with a caption causes layout breaks in the SuperDoc editor, specifically forcing subsequent indented text to render vertically (one character per line).
The indented sentence immediately following the image renders as one character per line vertically.
and when i tired to experiment further by opening the .docx in word and adding a few line breaks ( 3 line breaks) before the indented sentence, and saved it and opened it in superdoc.
It renders the text horizontally as expected. However, superdoc incorrectly strips/removes those line breaks from the layout entirely.
but it exports both versions normally, so it is a rendering issue only.
Steps to reproduce
- Create a Word document containing a numbered list.
- Insert an "Online Picture" next to the list (Word produces an image + caption).
- Immediately below the image and the list, insert a text sentence (ex: "What do I need to do now?") and increase its right indent several times (move it closer to the right margin and far from the left margin).
- Import the .docx into SuperDoc.
- Observe that the sentence renders vertically.
- To reproduce the line break issue: Open the same .docx in Word, add 3 line breaks before the indented sentence, save, and import into SuperDoc again. Observe that the line breaks are stripped.
Testrun - Copy.docx
SuperDoc version
1.45.0
Browser
Chrome
Additional context

The .docx in word

The .docx in an html of superdoc in chrome

Same .docx with 3 line breaks added

the second version of the .docx in superdoc
What happened?
Importing a .docx containing an online-inserted image with a caption causes layout breaks in the SuperDoc editor, specifically forcing subsequent indented text to render vertically (one character per line).
The indented sentence immediately following the image renders as one character per line vertically.
and when i tired to experiment further by opening the .docx in word and adding a few line breaks ( 3 line breaks) before the indented sentence, and saved it and opened it in superdoc.
It renders the text horizontally as expected. However, superdoc incorrectly strips/removes those line breaks from the layout entirely.
but it exports both versions normally, so it is a rendering issue only.
Steps to reproduce
Testrun - Copy.docx
SuperDoc version
1.45.0
Browser
Chrome
Additional context