Skip to content

Commit

Permalink
correct tags in debug UI html
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Sep 6, 2024
1 parent 769ae0a commit 886adbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function render(
.replaceAll(ROOT + path.sep, '')
.replaceAll(ZIG, '$ZIG')
.split('\n').slice(0, -3).join('\n');
buf.push(`<pre class="error"><code>${escapeHTML(err)}</pre></code>`);
buf.push(`<pre class="error"><code>${escapeHTML(err)}</code></pre>`);
}

const type = Array.isArray(last) ? 'showdown' : 'pkmn';
Expand Down Expand Up @@ -250,7 +250,7 @@ function displayPokemon(
buf.push('<span class="name">');
if (pokemon.status) buf.push(displayStatus(pokemon));
let name: string = gen.species.get(species)!.name;
if (active && pokemon.species !== pokemon.stored.species) name = `<em>${name}</em>`;
if (active && pokemon.species !== pokemon.stored.species) name = `<em>${name}`;
buf.push(`<strong>${name}&nbsp;<small>L${pokemon.level}</small></strong>`);
if (active && pokemon.species !== pokemon.stored.species) buf.push('</em>');
buf.push('</span>');
Expand Down

0 comments on commit 886adbe

Please sign in to comment.