Skip to content

Commit

Permalink
capitalize and periodize all json descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzfeng authored Jul 9, 2024
1 parent a55ce5c commit 0c32fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/ulib_doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class CKDocJSONOutput : public CKDocOutput
{
m_outputStr += " {\n";
m_outputStr += " \"name\": \"" + type->base_name + "\",\n";
m_outputStr += " \"description\": \"" + jsonStringify(type->doc) + "\",\n";
m_outputStr += " \"description\": \"" + jsonStringify(capitalize_and_periodize(type->doc)) + "\",\n";

// type heirarchy, iterate through parents
Chuck_Type * parent = type->parent;
Expand Down Expand Up @@ -440,7 +440,7 @@ class CKDocJSONOutput : public CKDocOutput
m_outputStr += " {\n";
m_outputStr += " \"name\": \"" + var->name + "\",\n";
m_outputStr += " \"type\": \"" + var->type->base_name + array_depth_to_brackets(var->type->array_depth) + "\",\n";
m_outputStr += " \"description\": \"" + jsonStringify(var->doc) + "\"\n";
m_outputStr += " \"description\": \"" + jsonStringify(capitalize_and_periodize(var->doc)) + "\"\n";
m_outputStr += " },\n";
}

Expand All @@ -449,7 +449,7 @@ class CKDocJSONOutput : public CKDocOutput
m_outputStr += " {\n";
m_outputStr += " \"name\": \"" + var->name + "\",\n";
m_outputStr += " \"type\": \"" + var->type->base_name + array_depth_to_brackets(var->type->array_depth) + "\",\n";
m_outputStr += " \"description\": \"" + jsonStringify(var->doc) + "\"\n";
m_outputStr += " \"description\": \"" + jsonStringify(capitalize_and_periodize(var->doc)) + "\"\n";
m_outputStr += " },\n";
}

Expand Down

0 comments on commit 0c32fbd

Please sign in to comment.