diff --git a/srd/abilities/book-of-homet.json b/srd/abilities/book-of-homet.json index 76f6f1f..b676e3c 100644 --- a/srd/abilities/book-of-homet.json +++ b/srd/abilities/book-of-homet.json @@ -4,5 +4,5 @@ "domain": "codex", "level": 7, "recall_cost": 0, - "description": "**Pass Through:** Make a Spellcast Roll (13). Once per rest on a success, you and all creatures touching you can pass through a wall or door within Close range. The effect ends once everyone is on the other side.**Plane Gate:** Make a Spellcast Roll (14). Once per long rest on a success, open a gateway to a location in another dimension or plane of existence you’ve been to before. This gateway lasts until your next rest." + "description": "**Pass Through:** Make a Spellcast Roll (13). Once per rest on a success, you and all creatures touching you can pass through a wall or door within Close range. The effect ends once everyone is on the other side.\n**Plane Gate:** Make a Spellcast Roll (14). Once per long rest on a success, open a gateway to a location in another dimension or plane of existence you’ve been to before. This gateway lasts until your next rest." } diff --git a/srd/abilities/book-of-tyfar.json b/srd/abilities/book-of-tyfar.json index 496e99f..8f43459 100644 --- a/srd/abilities/book-of-tyfar.json +++ b/srd/abilities/book-of-tyfar.json @@ -4,5 +4,5 @@ "domain": "codex", "level": 1, "recall_cost": 2, - "description": "**Wild Flame:** Make a Spellcast Roll against up to three adversaries within Melee range. Targets you succeed against take 2d6 magic damage and must mark a Stress as flames erupt from your hand.\n**Magic Hand:** You conjure a magical hand with the same size and strength as your own within Far range.**Mysterious Mist:** Make a Spellcast Roll (13) to cast a temporary thick fog that gathers in a stationary area within Very Close range. The fog heavily obscures this area and everything in it." + "description": "**Wild Flame:** Make a Spellcast Roll against up to three adversaries within Melee range. Targets you succeed against take 2d6 magic damage and must mark a Stress as flames erupt from your hand.\n**Magic Hand:** You conjure a magical hand with the same size and strength as your own within Far range.\n**Mysterious Mist:** Make a Spellcast Roll (13) to cast a temporary thick fog that gathers in a stationary area within Very Close range. The fog heavily obscures this area and everything in it." } diff --git a/web/src/web/pages/abilities.gleam b/web/src/web/pages/abilities.gleam index 34c0f88..9fcb281 100644 --- a/web/src/web/pages/abilities.gleam +++ b/web/src/web/pages/abilities.gleam @@ -33,7 +33,11 @@ pub fn single(id: String, data: data.Data) { case ability { Error(_) -> not_found.not_found(data) - Ok(ability) -> + Ok(ability) -> { + let description = + ability.description + |> string.split(on: "\n") + |> list.map(fn(feat) { html.p([], [html.text(feat)]) }) html.div([], [ html.h1([], [html.text(ability.name)]), html.h2([], [html.text("Level: " <> int.to_string(ability.level))]), @@ -47,7 +51,8 @@ pub fn single(id: String, data: data.Data) { html.text(ability.domain), ]), ]), - html.p([], [html.text(ability.description)]), + ..description ]) + } } }