Sample File
Users add new values by copying them from an external source. It creates a visual effect of a small leading space. Usual formulas can delete this space:
=""&A1"
↑ will produce the correct result.
Problem
when I use:
function display(rA1) {
var r = SpreadsheetApp.getActiveSheet().getRange(rA1);
return r.getDisplayValues();
}
The result will include leading spaces
Test1
→ Test1
I cannot delete this format from my original sheet/range: if I click [Ctrl]+[\].
UPD1. Possible to copy and paste Format only.