From 79764a7b10242c262f6ea2bf30aabe379278c953 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 23 May 2011 12:11:46 +0400 Subject: [PATCH] Fix composite value getting from xorg.conf. --- pym/cl_vars_share.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pym/cl_vars_share.py b/pym/cl_vars_share.py index 316193c..961aa01 100644 --- a/pym/cl_vars_share.py +++ b/pym/cl_vars_share.py @@ -358,16 +358,17 @@ class varsShare: lineCompositeTmp = "" lineComposite = "" for line in confLines: + line = line.strip() if flagStartExtensions: - if 'EndSection' in line: + if line.startswith('EndSection'): lineComposite = lineCompositeTmp break - elif 'Section' in line: + elif line.startswith('Section'): break - if 'Option' in line and '"Composite"' in line: + if line.startswith('Option') and '"Composite"' in line: lineCompositeTmp = line else: - if '"Extensions"' in line and 'Section' in line: + if '"Extensions"' in line and line.startswith('Section'): flagStartExtensions = True if lineComposite: listOpt = filter(lambda x: x.strip(), lineComposite.split('"'))