Close open elements, up to (and including) the element identified by the given identifier. Parameters ---------- id Element identifier, as returned by the :meth:`start` method.
(self, id)
| 222 | self.__write(f"</{tag}>\n") |
| 223 | |
| 224 | def close(self, id): |
| 225 | """ |
| 226 | Close open elements, up to (and including) the element identified |
| 227 | by the given identifier. |
| 228 | |
| 229 | Parameters |
| 230 | ---------- |
| 231 | id |
| 232 | Element identifier, as returned by the :meth:`start` method. |
| 233 | """ |
| 234 | while len(self.__tags) > id: |
| 235 | self.end() |
| 236 | |
| 237 | def element(self, tag, text=None, attrib=None, **extra): |
| 238 | """ |
no test coverage detected