Question: I'm trying to line up these div's, but it seems to not be working correctly. 

the web address is - <http://www.minvera.com/hosting-price-sheet>

I need all the div's to line up because it's supposed to be similar to a table, but I hate tables. 

Any suggestions?

Answer: 
Here is a rather "radical" method if your document has only paragraphs with text (images or other elements will be lost). See [doc about element types here](https://developers.google.com/apps-script/reference/document/element)

(comments in code)

```
function removeNewLines(){
  var doc = DocumentApp.getActiveDocument();
  var text = doc.getBody().getText();// get a string
  var textMod=text.replace(/\n/g,'');// replace all \n with ''
  Logger.log(textMod);//optional check in logger
  doc.getBody().clear().appendParagraph(textMod);// empty the doc and apend new texr
  doc.saveAndClose();// save the result
}

```
This code helped me to remove doubled new lines in document:

```
function removeDoubleNewLines(){
  var doc = DocumentApp.getActiveDocument();

  var paragraphs = doc.getBody().getParagraphs();
  var paragraph;
  for (var i = 0; i < paragraphs.length-1; i++) {
    paragraph = paragraphs[i];
    if(paragraph.getText() === '' &&
      paragraph.getNumChildren() === 0) {
      paragraph.removeFromParent();
    }
  }

}

```