-- TIME_STAMP 2015-10-26 19:53:37 v 0.1 local getSpaces = function() col = editor.Column[editor.CurrentPos] local s = '' local target_col = tonumber(props['column.to.fill']) if target_col == nil then return nil end if col < target_col then s = string.rep(' ', target_col - col) end return s end spaces = getSpaces() if spaces ~= nil then editor:InsertText(editor.CurrentPos, spaces) editor:LineEnd() end