Skip to content

Commit

Permalink
fix: name diff
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 17, 2024
1 parent 67360ce commit ed02358
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 38 deletions.
2 changes: 1 addition & 1 deletion server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def get_patch(patch_id: str, request: Request) -> Template:
logger.error("broken patch {!r}", patch_id)
raise InternalServerException
name_patch = "".join(
difflib.unified_diff([patch.original_name], [patch.name], "name", "name")
difflib.unified_diff([patch.original_name + "\n"], [patch.name + "\n"], "name", "name")
)

infobox_patch = ""
Expand Down
36 changes: 0 additions & 36 deletions server/templates/diff.html

This file was deleted.

2 changes: 1 addition & 1 deletion server/templates/patch.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
fileListStartVisible: false,
fileContentToggle: false,
maxLineSizeInBlockForComparison: 80,
matching: 'words',
matching: 'lines',
outputFormat: 'line-by-line',
synchronisedScroll: true,
renderNothingWhenEmpty: false,
Expand Down

0 comments on commit ed02358

Please sign in to comment.