From 069b42042f643fb06cd990b6644ab8614f6b1e6b Mon Sep 17 00:00:00 2001 From: dd84ai Date: Sun, 5 Nov 2023 18:11:20 +0100 Subject: [PATCH] fix: formatting to player lists --- app/viewer/views/playerview/player.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/viewer/views/playerview/player.go b/app/viewer/views/playerview/player.go index ef4eae3..d7109da 100644 --- a/app/viewer/views/playerview/player.go +++ b/app/viewer/views/playerview/player.go @@ -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 { @@ -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 { @@ -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 {