Pops the last pushed tag and writes the end tag. @return this writer. @throws EmptyStackException if there are no tags on the stack. @see #push(String) @see #push(String, Attribute...)
()
| 945 | * @see #push(String, Attribute...) |
| 946 | */ |
| 947 | public HTMLWriter pop() |
| 948 | { |
| 949 | String tagName = tagStack.pop(); |
| 950 | try { |
| 951 | writePrettyIndent(); |
| 952 | writeEndTag(tagName); |
| 953 | writePrettyNewline(); |
| 954 | } catch (IOException e) { |
| 955 | error = true; |
| 956 | } |
| 957 | return this; |
| 958 | } |
| 959 | |
| 960 | /** |
| 961 | * Starts an HTML document. |
no test coverage detected