Code is pre-filled with an example. Click JSMin to test it or fill fields with your own code.
Comments
Code
Level:
Minimal: original algorithm but keep linefeeds if single - Conservative: original algorithm - Agressive: remove more linefeed than the original algorithm but can be regressive