~ubuntu-branches/ubuntu/wily/csstidy/wily

« back to all changes in this revision

Viewing changes to debian/patches/001_emptyfile.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Coyner
  • Date: 2008-02-24 20:52:52 UTC
  • mfrom: (2.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080224205252-i9t0wyrnjeedczz2
Tags: 1.4-3
* Add patch gcc43fix which contains an uncaught missing include in
  csstidy/misc.cpp. Closes: #455123.
* Bumped Standards-Version to 3.7.3. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 001_emptyfile.dpatch by Kevin Coyner <kcoyner@debian.org>
 
3
##
 
4
## DP: allows empty css files to be generated, which are actually valid.
 
5
## DP: thanks to Bastian Kleineidam <calvin@debian.org>
 
6
 
 
7
@DPATCH@
 
8
diff -urNad csstidy-1.4~/csstidy/print_css.cpp csstidy-1.4/csstidy/print_css.cpp
 
9
--- csstidy-1.4~/csstidy/print_css.cpp  2007-07-10 10:20:52.000000000 -0400
 
10
+++ csstidy-1.4/csstidy/print_css.cpp   2007-09-21 22:13:06.000000000 -0400
 
11
@@ -78,8 +78,7 @@
 
12
 {
 
13
        if(css.empty() && charset == "" && namesp == "" && import.empty() && csstokens.empty())
 
14
        {
 
15
-               if(!settings["silent"]) cout << "Invalid CSS!" << endl;
 
16
-               return;
 
17
+        if(!settings["silent"]) cout << "Warning: empty CSS output!" << endl;
 
18
        }
 
19
 
 
20
        ofstream file_output;