 
         formatted.splice(formatrow, 0, [formatline]);
 
-        return formatted.join('\n')
+        return formatted.join('\n')+'\n'
 
 module.exports =
     config:

class TableFormatter
    subscriptions: []
    #regex: /((.+?)\|)+?(.+)?\r?\n(([:\-\|]+?)\|)+?([:\-\|]+)?[ ]*(\r?\n((.+?)\|)+?(.+)?)+/mg
    regex: /((.+?)\|)+?(.+)?\r?\n(([\s:\-\|]+?)\|)+?([\s:\-\|]+)?[ ]*(\r?\n((.+?)\|)+?(.+)?)+/mg
                            
    constructor: ->
        atom.workspace.observeTextEditors (editor) =>
            subscription = editor.getBuffer().onWillSave =>

        # console.log('myIterator')
        myIterator = (obj) =>
            # console.log('iterating')
            obj.replace(@formatTable(obj.match))

        for range in selectionsRanges
            # console.log(@regex)
