fix rst formatting for code blocks