Writes a normally formatted HTML tag, exceptions have a custom implementation, see respective functions.
(self, tagname, isOpen, args)
| 153 | self.write(value) |
| 154 | |
| 155 | def write_tag(self, tagname, isOpen, args): |
| 156 | """Writes a normally formatted HTML tag, exceptions have a custom |
| 157 | implementation, see respective functions. |
| 158 | """ |
| 159 | self.tabs() |
| 160 | self.write(u'<' + tagname) |
| 161 | self.getandwrite_attributes(tagname, args) |
| 162 | |
| 163 | if isOpen: |
| 164 | self.write(u'>') |
| 165 | # Push as last, so we can see the current tag on the stack |
| 166 | self._pushTag(tagname) |
| 167 | self.tabIn() |
| 168 | else: |
| 169 | self.write(u'/>') |
| 170 | self.newLine() # Optional write newline if not self.compat |
| 171 | |
| 172 | def write_tag_noWhitespace(self, tagname, isOpen, args): |
| 173 | """Writes a normally formatted HTML tag, exceptions have a custom |
no test coverage detected