To make the output match this, A should probably inherit from OneLineTag