Skip to content

Commit 1751bd4

Browse files
Merge branch 'fix-sdk-newline-console' into 'master'
fix(SDK): don't remove line breaks from local test page console See merge request codingame/game-engine!212
2 parents 8626816 + 5572feb commit 1751bd4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

playground/misc/misc-3-release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
77
### 🐞 Bug fix
88

99
- `Invalid negative values for colours no longer crash the game`
10+
- `Fixed missing line breaks in the Game Summary console`
1011

1112
## 3.4.8
1213

runner/src/main/resources/view/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ angular.module('player')
405405
.replace(/\xa4GREEN\xa4/g, '<span class="consoleSuccess">')
406406
.replace(/\xa7RED\xa7/g, '</span>')
407407
.replace(/\xa7GREEN\xa7/g, '</span>')
408+
.replace(/\n/g, '<br />')
408409

409410
input = input.replace(/[\u0000-\u0009\u000b-\u000c\u000e-\u001F]/g, function (c) {
410411
return '\\' + c.charCodeAt(0)

0 commit comments

Comments
 (0)