lib/filter/format.js
function shouldAddLineBreak(node, profile) {
		if (profile.tag_nl === true || abbrUtils.isBlock(node))
			return true;
		
		if (!node.parent || !profile.inline_break)
			return false;
		
		// check if there are required amount of adjacent inline element
		return shouldFormatInline(node.parent, profile);
}
function shouldAddLineBreak(node, profile) {
		if (profile.tag_nl === true || abbrUtils.isBlock(node))
			return true;
		
		if (!node.parent || !profile.inline_break)
			return false;
		
		// check if there are required amount of adjacent inline element
		return shouldFormatInline(node.parent, profile);
}
function shouldAddLineBreak ( node , profile ) { if ( profile . tag_nl === true || abbrUtils . isBlock ( node ) ) return true ; if ( ! node . parent || ! profile . inline_break ) return false ; // check if there are required amount of adjacent inline element return shouldFormatInline ( node . parent , profile ) ; }
Check if a newline should be added before element
@param {AbbreviationNode} node
@param {OutputProfile} profile
@return {Boolean}
Check if a newline should be added before element