I'm having an issue where when I insert an image into a cell in Google Docs, it also adds a newline which I can't seem to get rid of... I've tried what was suggested here but that doesn't work for some reason. This is my code:
function myFunction() {
var body = DocumentApp.getActiveDocument().getBody();
body.clear();
var table = body.appendTable();
var tr = table.appendTableRow()
tr.appendTableCell();
tr.appendTableCell();
var resp01 = UrlFetchApp.fetch("http://www.cincinnati-oh.gov/cityofcincinnati/assets/Image/Logos/cityofcincinnati.png");
var cell = table.getRow(0).getCell(0);
cell.insertImage(0,resp01.getBlob());
table.getCell(0,0).editAsText().replaceText("\\v+", "");
}
Thanks in advance!