@classmethod<EOL><INDENT>def to_rst(cls) -> str:<DEDENT>
sep_line = '<STR_LIT:+>' + <NUM_LIT:6> * '<STR_LIT:->' + '<STR_LIT:+>' + '<STR_LIT:->' * <NUM_LIT> + '<STR_LIT>'<EOL>blank_line = '<STR_LIT:|>' + <NUM_LIT> * '<STR_LIT:U+0020>' + '<STR_LIT>'<EOL>table = '<STR_LIT>'<EOL>for group in cls.groups:<EOL><INDENT>table += sep_line<EOL>table += blank_line<EOL>table += '<STR_LIT:|>' + '<STR_LIT>'.format(group.name).center(<NUM_LIT>) + '<STR_LIT>'<EOL>table += blank_line<EOL>for error in group.errors:<EOL><INDENT>table += sep_line<EOL>table += ('<STR_LIT:|>' + error.code.center(<NUM_LIT:6>) + '<STR_LIT>' +<EOL>error.short_desc.ljust(<NUM_LIT>) + '<STR_LIT>')<EOL><DEDENT><DEDENT>table += sep_line<EOL>return table<EOL>
Output the registry as reStructuredText, for documentation.