Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


clean_up_html_markup_with_tidy_and_perl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

clean_up_html_markup_with_tidy_and_perl [2008/12/05 21:39]
juckins created
clean_up_html_markup_with_tidy_and_perl [2008/12/05 21:41] (current)
juckins
Line 14: Line 14:
 Make sure to make a backup copy of the file first. Make sure to make a backup copy of the file first.
  
 +Now remove blank lines from the resulting cleaned-up code using perl:
 +<​code>​
 +perl -pi -e "​s/​^\n//"​ <​filename>​
 +</​code>​
clean_up_html_markup_with_tidy_and_perl.txt ยท Last modified: 2008/12/05 21:41 by juckins