def FormatExtensionCategory(extension_category):
    'Format extension metadata as RST.\n\n  Args:\n    extension_category: the name of the extension_category, e.g. com.acme.\n\n  Returns:\n    RST formatted extension category description.\n  '
    try:
        extensions = EXTENSION_CATEGORIES[extension_category]
    except KeyError as e:
        raise ProtodocError(f'''

Unable to find extension category:  {extension_category}

''')
    anchor = FormatAnchor(('extension_category_' + extension_category))
    extensions = FormatExtensionList(sorted(extensions))
    return EXTENSION_CATEGORY_TEMPLATE.substitute(anchor=anchor, extensions=extensions)
Format extension metadata as RST.

Args:
  extension_category: the name of the extension_category, e.g. com.acme.

Returns:
  RST formatted extension category description.
def FormatExtensionCategory(extension_category):
    'Format extension metadata as RST.\n\n  Args:\n    extension_category: the name of the extension_category, e.g. com.acme.\n\n  Returns:\n    RST formatted extension category description.\n  '
    try:
        extensions = EXTENSION_CATEGORIES[extension_category]
    except KeyError as e:
        raise ProtodocError(f'

Unable to find extension category:  {extension_category}

')
    anchor = FormatAnchor(('extension_category_' + extension_category))
    extensions = FormatExtensionList(sorted(extensions))
    return EXTENSION_CATEGORY_TEMPLATE.substitute(anchor=anchor, extensions=extensions)