Updated headers to use base text parameter from parent class
Updated handling of white space for inline elements