Unplanned
Last Updated: 08 Aug 2024 10:23 by ADMIN
Dev Lead
Created on: 12 May 2020 15:44
Category: WordsProcessing
Type: Bug Report
1
WordsProcessing: Wrong exported paragraph indentation when the paragraph is in a table cell

Wrong exported paragraph indentation when the paragraph is in a table cell.

Workaround: Iterate table`s paragraphs and set the negative indentations to zero:

IEnumerable<Table> tables = this.document.EnumerateChildrenOfType<Table>();
foreach (Table table in tables)
{
	IEnumerable<Paragraph> paragraphs = table.EnumerateChildrenOfType<Paragraph>();
	foreach (Paragraph paragraph in paragraphs)
	{
		if (paragraph.Indentation.LeftIndent < 0)
		{
			paragraph.Indentation.LeftIndent = 0;
		}
	}
}

0 comments