File: 001-emptyfile.patch

package info (click to toggle)
csstidy 1.4-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 388 kB
  • sloc: cpp: 2,570; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Kevin Coyner <kcoyner@debian.org>
Subject: allows empty css files to be generated, which are actually valid.
 thanks to Bastian Kleineidam <calvin@debian.org>

diff -urNad csstidy-1.4~/csstidy/print_css.cpp csstidy-1.4/csstidy/print_css.cpp
--- csstidy-1.4~/csstidy/print_css.cpp	2007-07-10 10:20:52.000000000 -0400
+++ csstidy-1.4/csstidy/print_css.cpp	2007-09-21 22:13:06.000000000 -0400
@@ -78,8 +78,7 @@
 {
 	if(css.empty() && charset == "" && namesp == "" && import.empty() && csstokens.empty())
 	{
-		if(!settings["silent"]) cout << "Invalid CSS!" << endl;
-		return;
+        if(!settings["silent"]) cout << "Warning: empty CSS output!" << endl;
 	}
 
 	ofstream file_output;