fix parsing of last block of API documentation
provide margin also to list blocks