Pop tag from the tag stack.
(self, tag)
| 217 | self._popTag(tag) |
| 218 | |
| 219 | def _popTag(self, tag): |
| 220 | """Pop tag from the tag stack.""" |
| 221 | runningTag = self._tagStack.pop() |
| 222 | if runningTag is None or not runningTag == tag: |
| 223 | self.write('<div color="#FF0000">Mismatch in closing tag "%s", expected "%s" in tree "%s".</div>' % (tag, runningTag, self._tagStack)) |
| 224 | self.newLine() # Optional write newline if not self.compat |
| 225 | |
| 226 | def _peekTag(self): |
| 227 | """Answers the name of the current tag.""" |
no test coverage detected