| 75 | } |
| 76 | |
| 77 | void Generator::Tag::open(llvm::raw_ostream &myfile) const |
| 78 | { |
| 79 | myfile << "<" << name; |
| 80 | if (!attributes.empty()) |
| 81 | myfile << " " << attributes; |
| 82 | |
| 83 | if (len) { |
| 84 | myfile << ">"; |
| 85 | } else { |
| 86 | // Unfortunately, html5 won't allow <a /> or <span /> tags, they need to be explicitly closed |
| 87 | // myfile << "/>"; |
| 88 | myfile << "></" << name << ">"; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void Generator::Tag::close(llvm::raw_ostream &myfile) const |
| 93 | { |
no outgoing calls
no test coverage detected