Skip to content

Commit

Permalink
Merge pull request #452 from terryzfeng/main
Browse files Browse the repository at this point in the history
capitalize and periodize all json descriptions
  • Loading branch information
gewang authored Jul 10, 2024
2 parents 74e5ccd + 0c32fbd commit 0578918
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 0578918

Please sign in to comment.