Google Apps Script that removes all blank lines from a Google Docs document
To create a Google Apps Script that removes all blank lines from a Google Docs document, you can iterate through all the elements in the document body and check if any paragraph elements consist only of whitespace or are empty. If so, you can remove those elements. This script operates on the active document, so … Read more