fix paragraph margins broken by the change from p to div so that the element could contain tables