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

[5422] Bug in kea-docgen fixed.

parent e48ae94a
......@@ -1524,7 +1524,7 @@ Here is an example of complex IPv6 reservation:
</para>
</section>
<section xml:id="cmd-reservation-get">
<section xml:id="command-reservation-get">
<title>reservation-get command</title>
<para><command>reservation-get</command> can be used to query the host
database and retrieve existing reservations. There are two types of
......@@ -1602,7 +1602,7 @@ An example result returned when the query was malformed:<screen>
</section>
<section xml:id="cmd-reservation-del">
<section xml:id="command-reservation-del">
<title>reservation-del command</title>
<para><command>reservation-del</command> can be used to delete a
reservation from the host database. There are two types of parameters
......
......@@ -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());
......
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