trim trailing spaces & make htmlizable
basic section 2.1.2
basic section 2.1.3 - 2.1.4