diff options
Diffstat (limited to 'tdeprint/cups/make_driver_db_cups.cpp')
-rw-r--r-- | tdeprint/cups/make_driver_db_cups.cpp | 5 |
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 + "]"; |