From 40fa15df5ec7b1a61447b18ea712345da52dbb17 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Sun, 19 Nov 2023 08:31:51 +0000 Subject: [PATCH] OOPS: Formatting --- .../src/main/scala/indigo/shared/QuickCache.scala | 12 ++++++------ .../main/scala/indigo/shared/scenegraph/Text.scala | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/indigo/indigo/src/main/scala/indigo/shared/QuickCache.scala b/indigo/indigo/src/main/scala/indigo/shared/QuickCache.scala index 8463e3319..5357e7771 100644 --- a/indigo/indigo/src/main/scala/indigo/shared/QuickCache.scala +++ b/indigo/indigo/src/main/scala/indigo/shared/QuickCache.scala @@ -2,12 +2,12 @@ package indigo.shared /** QuickCache is a handy way to avoid expensive re-calculation of data. It is a side-effecting arrangement that Indigo * uses a lot internally, that can also be used by cautious game devs. Simple example: - - ``` - given QuickCache[MyExpensiveObject] = QuickCache.empty - - QuickCache("key")(obj) - ``` + * + * ``` + * given QuickCache[MyExpensiveObject] = QuickCache.empty + * + * QuickCache("key")(obj) + * ``` */ final class QuickCache[A](private val cache: scalajs.js.Dictionary[A]): diff --git a/indigo/indigo/src/main/scala/indigo/shared/scenegraph/Text.scala b/indigo/indigo/src/main/scala/indigo/shared/scenegraph/Text.scala index d138c3725..f521181f8 100644 --- a/indigo/indigo/src/main/scala/indigo/shared/scenegraph/Text.scala +++ b/indigo/indigo/src/main/scala/indigo/shared/scenegraph/Text.scala @@ -100,7 +100,9 @@ final case class Text[M <: Material]( def withFontKey(newFontKey: FontKey): Text[M] = this.copy(fontKey = newFontKey) - /** Sets the vertical gap between lines of text _in addition_ (relative to) to the actual height of the text. Defaults to 0. */ + /** Sets the vertical gap between lines of text _in addition_ (relative to) to the actual height of the text. Defaults + * to 0. + */ def withLineHeight(amount: Int): Text[M] = this.copy(lineHeight = amount)