Write a foot comment.
(emitter *yaml_emitter_t)
| 1162 | |
| 1163 | // Write a foot comment. |
| 1164 | func yaml_emitter_process_foot_comment(emitter *yaml_emitter_t) bool { |
| 1165 | if len(emitter.foot_comment) == 0 { |
| 1166 | return true |
| 1167 | } |
| 1168 | if !yaml_emitter_write_indent(emitter) { |
| 1169 | return false |
| 1170 | } |
| 1171 | if !yaml_emitter_write_comment(emitter, emitter.foot_comment) { |
| 1172 | return false |
| 1173 | } |
| 1174 | emitter.foot_comment = emitter.foot_comment[:0] |
| 1175 | emitter.foot_indent = emitter.indent |
| 1176 | if emitter.foot_indent < 0 { |
| 1177 | emitter.foot_indent = 0 |
| 1178 | } |
| 1179 | return true |
| 1180 | } |
| 1181 | |
| 1182 | // Check if a %YAML directive is valid. |
| 1183 | func yaml_emitter_analyze_version_directive(emitter *yaml_emitter_t, version_directive *yaml_version_directive_t) bool { |
no test coverage detected