Skip to content

Commit

Permalink
fix: docs gen needs to insert extra linefeed to avoid parser interrup…
Browse files Browse the repository at this point in the history
…ted. (the code fence will not render without the leading linefeed)
  • Loading branch information
sakurawald committed Jul 20, 2024
1 parent 5aeb010 commit fe68f35
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private void walk(StringBuilder sb, int level, JsonObject node) {
if (key.endsWith(CLASS_DOCUMENTATION)) {
// class documentation
sb.append(indent).append("<table><tr><td>").append(System.lineSeparator())
.append(indent).append(System.lineSeparator())
.append(translateDocumentation(value.toString(), indent)).append(System.lineSeparator())
.append(indent).append("</td></tr></table>").append(System.lineSeparator());
sb.append(indent).append(System.lineSeparator());
Expand All @@ -101,6 +102,7 @@ private void walk(StringBuilder sb, int level, JsonObject node) {
// field documentation
String documentation = node.get(key + FIELD_DOCUMENTATION).getAsString();
sb.append(indent).append("<table><tr><td>").append(System.lineSeparator())
.append(indent).append(System.lineSeparator())
.append(translateDocumentation(documentation, indent)).append(System.lineSeparator())
.append(indent).append(System.lineSeparator())
.append(indent).append(System.lineSeparator())
Expand Down

0 comments on commit fe68f35

Please sign in to comment.