Added support for quantity markup (x5) at the end of a line