Skip to content

Commit

Permalink
convert multiline to single line string
Browse files Browse the repository at this point in the history
  • Loading branch information
Quillraven committed Mar 24, 2024
1 parent 1d62642 commit c2425af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ class GlProfilerSystem : IntervalSystem() {
private val profiler = GLProfiler(Gdx.graphics).apply { enable() }

override fun onTick() {
Gdx.graphics.setTitle("bindings: ${profiler.textureBindings}, drawCalls: ${profiler.drawCalls}, calls: ${profiler.calls} fps: ${Gdx.app.graphics.framesPerSecond}")
Gdx.graphics.setTitle(
"""
|bindings: ${profiler.textureBindings},
|drawCalls: ${profiler.drawCalls},
|calls: ${profiler.calls}
|fps: ${Gdx.app.graphics.framesPerSecond}
""".trimMargin().replace(Regex("(\n*)\n"), "$1")
)

profiler.reset()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class TiledService(
| Life: $life
| Move: $speed
| Damage: $damage
""".trimMargin()
""".trimMargin().replace(Regex("(\n*)\n"), "$1")
}
}
}
Expand Down

0 comments on commit c2425af

Please sign in to comment.