We can set the left indent for a table in Google Docs manually by right clicking on the table and selecting "Table Properties":
I have tried to achieve the same using Google Apps Script by setting the INDENT_FIRST_LINE and INDENT_START attributes, but there is no effect on the table:
var style = {};
style[DocumentApp.Attribute.INDENT_FIRST_LINE] = 72;
style[DocumentApp.Attribute.INDENT_START] = 72;
body.insertTable(elementIndex, table).setAttributes(style);
How can I set the same property for a table using Google Apps Script? Is there an alternate way to achieve the same?
Please star this issue so that Google team takes it on priority:
