It seems that the problem is that HTML styling with a negative value is being ignored when converting to Google Doc format by Aspose-words API.
The HTML string for each citation is as follows:
'<p style="padding-left:24px;text-indent:-24px;line-height:2em;margin-top:2em;">' + citationText + '</p>'
The HTML styling for the
tag is the well established way to create a hanging indent , where all but the 1st line of a paragraph are indented. The padding-left style pushes the text contents of the paragraph to the right by 24 px. The negative text-indent style then moves the 1st line of the paragraph to the left by 24 px. In this way, all subsequent lines of the paragraph will appear indented to the right.
The hanging indent format is preserved when converting and saving a citation with this styling to a .docx file:
The hanging indent format IS NOT preserved when the same HTML is converted and saved as a Google Doc:
We believe that the issue is that negative values for positioning styles are being ignored when converting HTML to Google Doc format via Aspose-words API.
Aspose-words API use: 17.7