Commit e0021f33 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[5422] Bug in kea-docgen fixed.

parent e48ae94a
...@@ -1524,7 +1524,7 @@ Here is an example of complex IPv6 reservation: ...@@ -1524,7 +1524,7 @@ Here is an example of complex IPv6 reservation:
</para> </para>
</section> </section>
<section xml:id="cmd-reservation-get"> <section xml:id="command-reservation-get">
<title>reservation-get command</title> <title>reservation-get command</title>
<para><command>reservation-get</command> can be used to query the host <para><command>reservation-get</command> can be used to query the host
database and retrieve existing reservations. There are two types of database and retrieve existing reservations. There are two types of
...@@ -1602,7 +1602,7 @@ An example result returned when the query was malformed:<screen> ...@@ -1602,7 +1602,7 @@ An example result returned when the query was malformed:<screen>
</section> </section>
<section xml:id="cmd-reservation-del"> <section xml:id="command-reservation-del">
<title>reservation-del command</title> <title>reservation-del command</title>
<para><command>reservation-del</command> can be used to delete a <para><command>reservation-del</command> can be used to delete a
reservation from the host database. There are two types of parameters reservation from the host database. There are two types of parameters
......
...@@ -235,7 +235,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { ...@@ -235,7 +235,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) {
<< endl << endl; << endl << endl;
// description and examples // 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; << cmd->get("name")->stringValue() << "\"/></para>" << endl << endl;
// Command syntax: // Command syntax:
...@@ -243,7 +243,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { ...@@ -243,7 +243,7 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) {
<< " <screen>" << escapeString(cmd->get("cmd-syntax")->stringValue()) << " <screen>" << escapeString(cmd->get("cmd-syntax")->stringValue())
<< "</screen>" << "</screen>"
<< endl; << endl;
if (cmd->get("cmd-comment")) { if (cmd->contains("cmd-comment")) {
f << cmd->get("cmd-comment")->stringValue(); f << cmd->get("cmd-comment")->stringValue();
} }
f << "</para>" << endl << endl; f << "</para>" << endl << endl;
...@@ -251,7 +251,8 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) { ...@@ -251,7 +251,8 @@ void generateCommand(stringstream& f, const ElementPtr& cmd) {
// Response syntax // Response syntax
f << "<para>Response syntax:" << endl f << "<para>Response syntax:" << endl
<< " <screen>"; << " <screen>";
if (cmd->get("resp->syntax")) {
if (cmd->contains("resp-syntax")) {
f << escapeString(cmd->get("resp-syntax")->stringValue()); f << escapeString(cmd->get("resp-syntax")->stringValue());
} else { } else {
f << escapeString(standardResponseSyntax()); f << escapeString(standardResponseSyntax());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment