Fix reST markup generated for record redefs.

They should have been using reST roles to xref the original record type
instead of a reST directive to declare a new type.
This commit is contained in:
Jon Siwek 2011-05-17 15:27:45 -05:00
parent d69c3edf21
commit 73a18714b3
2 changed files with 5 additions and 3 deletions

View file

@ -1092,8 +1092,10 @@ decl:
new RecordType(fake_type_decl_list); new RecordType(fake_type_decl_list);
ID* fake = create_dummy_id($3, fake_record); ID* fake = create_dummy_id($3, fake_record);
fake_type_decl_list = 0; fake_type_decl_list = 0;
current_reST_doc->AddRedef( BroDocObj* o =
new BroDocObj(fake, reST_doc_comments, true)); new BroDocObj(fake, reST_doc_comments, true);
o->SetRole(true);
current_reST_doc->AddRedef(o);
} }
else else
{ {

View file

@ -279,7 +279,7 @@ Redefinitions
document the "SimpleEnum" redef here document the "SimpleEnum" redef here
.. bro:type:: Example::SimpleRecord :bro:type:`Example::SimpleRecord`
:Type: :bro:type:`record` :Type: :bro:type:`record`