Skip to content

Commit 069b420

Browse files
committed
fix: formatting to player lists
1 parent f24d559 commit 069b420

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/viewer/views/playerview/player.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (t *PlayersTemplates) GenerateRecords() error {
109109
logus.Debug("neutralPlayers=", logus.Items(neutralPlayers, "neutralPlayers"))
110110

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

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

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

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

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

133133
for _, playerVars := range friendPlayers {

0 commit comments

Comments
 (0)