diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2018-06-13 10:54:21 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2019-10-29 18:57:13 +0100 |
commit | e0021f33d05742a071c0f6d05877f4748dfd3f19 (patch) | |
tree | 635af547f255baa2f5f27a1161d5b007b8773b55 /tools | |
parent | [5422] renamed to kea-docgen (diff) | |
download | kea-e0021f33d05742a071c0f6d05877f4748dfd3f19.tar.xz kea-e0021f33d05742a071c0f6d05877f4748dfd3f19.zip |
[5422] Bug in kea-docgen fixed.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cmd-docgen/kea_docgen.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/cmd-docgen/kea_docgen.cc b/tools/cmd-docgen/kea_docgen.cc index 027a145bd9..2b0758dc61 100644 --- a/tools/cmd-docgen/kea_docgen.cc +++ b/tools/cmd-docgen/kea_docgen.cc @@ -235,7 +235,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { << endl << endl; // description and examples - f << "<para>Description and examples: See <xref linkend=\"cmd-" + f << "<para>Description and examples: See <xref linkend=\"command-" << cmd->get("name")->stringValue() << "\"/></para>" << endl << endl; // Command syntax: @@ -243,7 +243,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { << " <screen>" << escapeString(cmd->get("cmd-syntax")->stringValue()) << "</screen>" << endl; - if (cmd->get("cmd-comment")) { + if (cmd->contains("cmd-comment")) { f << cmd->get("cmd-comment")->stringValue(); } f << "</para>" << endl << endl; @@ -251,7 +251,8 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { // Response syntax f << "<para>Response syntax:" << endl << " <screen>"; - if (cmd->get("resp->syntax")) { + + if (cmd->contains("resp-syntax")) { f << escapeString(cmd->get("resp-syntax")->stringValue()); } else { f << escapeString(standardResponseSyntax()); |