Skip to content
Browse files

THRIFT-1724 HTML generator doesn't identify unions in output

Patch: Kevin Radloff


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1400519 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent cc6ea42 commit e854206180658f3e840518d46def3572cc79178e @bufferoverflow bufferoverflow committed Oct 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 compiler/cpp/src/generate/t_html_generator.cc
View
2 compiler/cpp/src/generate/t_html_generator.cc
@@ -579,6 +579,8 @@ void t_html_generator::generate_struct(t_struct* tstruct) {
f_out_ << "<h3 id=\"Struct_" << name << "\">";
if (tstruct->is_xception()) {
f_out_ << "Exception: ";
+ } else if (tstruct->is_union()) {
+ f_out_ << "Union: ";
} else {
f_out_ << "Struct: ";
}

0 comments on commit e854206

Please sign in to comment.
Something went wrong with that request. Please try again.