How to remove empty lines in Liquid Studio

To remove empty lines using regular expressions in Liquid Studio, open an XML or JSON file, select the Source or Text view, and access the Find/Replace dialog using Ctrl+H. Enable regular expressions, enter \n\n to find and \n to replace, then click ‘Replace All’. This is available in the Free Community Version.


Using a Regular Expression

To remove all empty lines using a regular expression…

  1. Open Liquid Studio.
  2. Open an XML or JSON file and select the Source or Text view.
  3. Click Ctrl+H to show the Find/Replace dialog.
  4. Click the ‘Use Regular Expression (Alt+E)’ button.
  5. Enter \n\n in the first text box (find value).
  6. Enter \n in the second text box (replace value).
  7. Click ‘Replace All (Alt+A)’ button.

How to remove empty lines in Liquid Studio

This feature is included in the Free Community Version of Liquid Studio.

 

Discover more from Liquid Technologies Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading