Skip to content

Commit

Permalink
Indent last update body (#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Sep 2, 2024
1 parent 31c7178 commit 9185734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions working-groups/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ public String getIndentedReadme() {
return readme.replaceAll("\n", "\n ").trim();
}

public String getIndentedLastUpdate() {
String lastUpdateBody = getLastUpdate().body();
return lastUpdateBody.replaceAll("\n", "\n ").trim();
}

public Status getStatus() {
if (statusUpdates.isEmpty()) {
return Status.INACTIVE;
Expand Down
2 changes: 1 addition & 1 deletion working-groups/templates/wg.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ working-groups:
last-activity: {board.getLastActivityDate()}
{#if board.getLastUpdate() && board.getLastUpdate().body.trim()}
last-update: |
{board.getLastUpdate().body.trim()}
{board.getIndentedLastUpdate().raw}
{/if}
{/for}

0 comments on commit 9185734

Please sign in to comment.