Skip to content

Fix log rendering with < and > #526

Merged
wolfgangwalther merged 2 commits intoMic92:masterfrom
wolfgangwalther:log-rendering
Jul 7, 2025
Merged

Fix log rendering with < and > #526
wolfgangwalther merged 2 commits intoMic92:masterfrom
wolfgangwalther:log-rendering

Conversation

@wolfgangwalther
Copy link
Collaborator

When the log contains something that looks like a HTML tag, those will silently disappear. Properly escape these to make them show up in the GitHub comment.

Resolves #502

@pbsds

When the log contains something that looks like a HTML tag, those will
silently disappear. Properly escape these to make them show up in the
GitHub comment.

Resolves Mic92#502
Technically this is already checked in the `if` condition, but mypy
still complains with:

```
nixpkgs_review/cli/__init__.py:154: error: Item "None" of "str | None"
has no attribute "split"  [union-attr]
```
@wolfgangwalther wolfgangwalther merged commit 2351451 into Mic92:master Jul 7, 2025
2 checks passed
@wolfgangwalther wolfgangwalther deleted the log-rendering branch July 7, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ansi removal logic in tailed build logs removes colored text

2 participants