@@ -4,6 +4,7 @@ import { EditorState } from 'prosemirror-state';
44import { SuperConverter } from './SuperConverter.js' ;
55import {
66 emuToPixels ,
7+ getTextIndentExportValue ,
78 inchesToTwips ,
89 linesToTwips ,
910 pixelsToEightPoints ,
@@ -233,7 +234,7 @@ function generateParagraphProperties(node) {
233234 const { styleId } = attrs ;
234235 if ( styleId ) pPrElements . push ( { name : 'w:pStyle' , attributes : { 'w:val' : styleId } } ) ;
235236
236- const { spacing, indent, textAlign, textIndent, lineHeight, marksAttrs, keepLines, keepNext, dropcap } = attrs ;
237+ let { spacing, indent, textAlign, textIndent, lineHeight, marksAttrs, keepLines, keepNext, dropcap } = attrs ;
237238 if ( spacing ) {
238239 const { lineSpaceBefore, lineSpaceAfter, lineRule } = spacing ;
239240
@@ -280,7 +281,7 @@ function generateParagraphProperties(node) {
280281 if ( hanging || hanging === 0 ) attributes [ 'w:hanging' ] = pixelsToTwips ( hanging ) ;
281282
282283 if ( textIndent && ! attributes [ 'w:left' ] ) {
283- attributes [ 'w:left' ] = inchesToTwips ( textIndent ) ;
284+ attributes [ 'w:left' ] = getTextIndentExportValue ( textIndent ) ;
284285 }
285286
286287 const indentElement = {
@@ -292,7 +293,7 @@ function generateParagraphProperties(node) {
292293 const indentElement = {
293294 name : 'w:ind' ,
294295 attributes : {
295- 'w:left' : inchesToTwips ( textIndent ) ,
296+ 'w:left' : getTextIndentExportValue ( textIndent ) ,
296297 } ,
297298 } ;
298299 pPrElements . push ( indentElement ) ;
0 commit comments