From 0dce218fbcd3e418fcc99c0033062606af0a26d2 Mon Sep 17 00:00:00 2001 From: Ildar Sagdejev Date: Fri, 6 Aug 2021 15:07:29 -0400 Subject: [PATCH] Don't add extra lines around the and tags --- lib/html.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/html.js b/lib/html.js index 455c1ae..604dfa9 100644 --- a/lib/html.js +++ b/lib/html.js @@ -36,8 +36,10 @@ }); */ +// +// Wrapper function to invoke all the necessary constructors and deal with the output. +// function style_html(html_source, options) { -//Wrapper function to invoke all the necessary constructors and deal with the output. var multi_parser, indent_size, @@ -69,7 +71,6 @@ function style_html(html_source, options) { this.Utils = { //Uilities made available to the various functions whitespace: "\n\r\t ".split(''), single_token: 'br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?='.split(','), //all the single tags for HTML - extra_liners: 'head,body,/html'.split(','), //for tags that need a line of whitespace before them in_array: function (what, arr) { for (var i=0; i