From 1ad4aad83400a3106d1d30d2b754ad7ed157e51f Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Sun, 26 Sep 1999 19:27:34 +0000 Subject: 1) strip spaces from horiz and vert numbers 2) set monitor type if manually selected --- xf86config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xf86config.py') diff --git a/xf86config.py b/xf86config.py index 0f7326c93..754a97037 100644 --- a/xf86config.py +++ b/xf86config.py @@ -136,7 +136,8 @@ class XF86Config: if line and line[0] == '#': continue fields = string.split (line, ';') - monitors [fields[0]] = (fields[2], fields[3]) + monitors [string.strip(fields[0])] = \ + (string.strip(fields[2]), string.strip(fields[3])) return monitors def setMonitor (self, (monitor, (hrange, vrange))): @@ -446,6 +447,8 @@ Section "Keyboard" if self.monEisa: info["EISA"] = self.monEisa + elif self.monID: + info["EISA"] = self.monID else: info["EISA"] = "Generic Monitor" -- cgit