Module: nagvis
Branch: master
Commit: edc23f647695fa4fc637f1182fdbb2c91f1e54db
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=edc23f647695fa4fc637f1182fdbb2c91f1e54db

Author: LaMi <[email protected]>
Date:   Sat Mar 20 15:45:10 2010 +0100

map configuration parser ignores spaces/tabs before closing brackets of objects 
or comments

---

 share/server/core/classes/GlobalMapCfg.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/GlobalMapCfg.php 
b/share/server/core/classes/GlobalMapCfg.php
index 233de10..5218bca 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -1402,7 +1402,7 @@ class GlobalMapCfg {
                                                // Don't recognize empty lines
                                                if($file[$l] != '') {
                                                        // Don't recognize 
comments and empty lines, do nothing with ending delimiters
-                                                       $sFirstChar = 
substr($file[$l], 0, 1);
+                                                       $sFirstChar = 
substr(ltrim($file[$l]), 0, 1);
                                                        if($sFirstChar != ';' 
&& $sFirstChar != '#' && $sFirstChar != '}') {
                                                                // Determine if 
this is a new object definition
                                                                
if(strpos($file[$l], 'define') !== FALSE) {


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to