Index: branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_item.php =================================================================== diff -u -r1484 -r1487 --- branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_item.php (.../selectors_item.php) (revision 1484) +++ branches/unlabeled/unlabeled-1.1.2/core/units/selectors/selectors_item.php (.../selectors_item.php) (revision 1487) @@ -31,8 +31,24 @@ $ret .= "\t$property_name: $property_value;".$separator; } - $ret .= $this->GetDBField('AdvancedCSS'); + $advanced_css = $this->GetDBField('AdvancedCSS'); + if($separator != "\n") $advanced_css = str_replace("\n",$separator,$advanced_css); + $ret .= $advanced_css; + return $ret; } + + /** + * Resets all block style attributes to it's base style + * + */ + function ResetStyle() + { + if( $this->GetDBField('ParentId') ) + { + $this->SetDBField( 'SelectorData', Array() ); + $this->Update(); + } + } } ?> \ No newline at end of file