Skip to content

Commit

Permalink
fix: formatting to player lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Nov 5, 2023
1 parent f24d559 commit 069b420
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/viewer/views/playerview/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (t *PlayersTemplates) GenerateRecords() error {
logus.Debug("neutralPlayers=", logus.Items(neutralPlayers, "neutralPlayers"))

if len(systemTags) > 0 || len(regionTags) > 0 {
t.neutral.mainTable.ViewBeginning = "**Neutral players in tracked systems and regions**\n```json"
t.neutral.mainTable.ViewBeginning = "**Neutral players in tracked systems and regions**\n```json\n"
t.neutral.mainTable.ViewEnd = "```\n"

for _, playerVars := range neutralPlayers {
Expand All @@ -118,7 +118,7 @@ func (t *PlayersTemplates) GenerateRecords() error {
}

if (len(systemTags) > 0 || len(regionTags) > 0) && len(enemyTags) > 0 {
t.enemies.mainTable.ViewBeginning = "**Enemy players in tracked systems and regions**\n```diff"
t.enemies.mainTable.ViewBeginning = "**Enemy players in tracked systems and regions**\n```diff\n"
t.enemies.mainTable.ViewEnd = "```\n"

for _, playerVars := range enemyPlayers {
Expand All @@ -127,7 +127,7 @@ func (t *PlayersTemplates) GenerateRecords() error {
}

if len(friendTags) > 0 {
t.friends.mainTable.ViewBeginning = "**Friend players in all systems and regions**\n```diff"
t.friends.mainTable.ViewBeginning = "**Friend players in all systems and regions**\n```diff\n"
t.friends.mainTable.ViewEnd = "```\n"

for _, playerVars := range friendPlayers {
Expand Down

0 comments on commit 069b420

Please sign in to comment.