def add_menu_entries(self, entries: List[str], reg: Pattern=re.compile('\\s+---?\\s+')) -> None:
    for entry in entries:
        name = self.node_names[entry]
        try:
            parts = reg.split(name, 1)
        except TypeError:
            parts = [name]
        if (len(parts) == 2):
            (name, desc) = parts
        else:
            desc = ''
        name = self.escape_menu(name)
        desc = self.escape(desc)
        self.body.append(self.format_menu_entry(name, entry, desc))
def add_menu_entries(self, entries: List[str], reg: Pattern=re.compile('\\s+---?\\s+')) -> None:
    for entry in entries:
        name = self.node_names[entry]
        try:
            parts = reg.split(name, 1)
        except TypeError:
            parts = [name]
        if (len(parts) == 2):
            (name, desc) = parts
        else:
            desc = 
        name = self.escape_menu(name)
        desc = self.escape(desc)
        self.body.append(self.format_menu_entry(name, entry, desc))