private void appendProperty ( StringBuffer sb , String propertyName , Object propertyValue ) { if ( propertyValue != null ) { propertyValue = propertyValue . toString ( ) . replaceAll ( "\\s+" , " " ) . trim ( ) ; } sb . append ( ljust ( propertyName + ":" , 45 ) + propertyValue + "\n" ) ; }
Append a property to the specified string .