summaryrefslogtreecommitdiffstats
path: root/tdeprint/cups/make_driver_db_cups.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-20 14:44:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-20 14:44:12 -0600
commit5a97ffdaae6532a39f1ebc1f0594833b1a253585 (patch)
tree5f12e8bc5262ba55122d72ebe74d409b019d351d /tdeprint/cups/make_driver_db_cups.cpp
parent880fec09182a500b7e19b5b1c73189040cf3421a (diff)
downloadtdelibs-5a97ffdaae6532a39f1ebc1f0594833b1a253585.tar.gz
tdelibs-5a97ffdaae6532a39f1ebc1f0594833b1a253585.zip
Make compressed PPD loading and usage functional
Diffstat (limited to 'tdeprint/cups/make_driver_db_cups.cpp')
-rw-r--r--tdeprint/cups/make_driver_db_cups.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdeprint/cups/make_driver_db_cups.cpp b/tdeprint/cups/make_driver_db_cups.cpp
index 021c77b95..c658181a7 100644
--- a/tdeprint/cups/make_driver_db_cups.cpp
+++ b/tdeprint/cups/make_driver_db_cups.cpp
@@ -276,10 +276,15 @@ int parseCompressedPpdFile(const char *ppdfilename, const char *origin, const ch
}
}
+ manufacturer = manufacturer.stripWhiteSpace();
+ modelName = modelName.stripWhiteSpace();
+ driver = driver.stripWhiteSpace();
+
TQStringList driverList = TQStringList::split(",", driver, TRUE);
driver = driverList[0];
if (driver.startsWith("D")) {
driver = driver.mid(1);
+ driver = driver.stripWhiteSpace();
}
model = manufacturer + " " + modelName + " " + driver;
description = description + " [" + languageVersion + "]";