diff --git a/pygitweb/actions.py b/pygitweb/actions.py
index 8d9e10c..e191602 100644
--- a/pygitweb/actions.py
+++ b/pygitweb/actions.py
@@ -27,8 +27,8 @@ from pygitweb.git_helpers import (
 	get_readme_at_ref_path,
 	get_tree_at_ref_path,
 	git_get_heads_list,
-	git_get_references,
 	git_get_project_description,
+	git_get_references,
 	git_get_remotes_info,
 	git_get_tags_list,
 	git_get_type,
@@ -368,7 +368,7 @@ def git_summary(project: str) -> HTMLResponse:
 				),
 				(
 					f'<a id="summary-ref-commit-link" href="{initial_ref_state["commit_href"]}">'
-					f'{initial_ref_state["display"]}</a>: '
+					f"{initial_ref_state['display']}</a>: "
 					f'<a id="summary-ref-browse-link" href="{initial_ref_state["browse_href"]}">browse</a> - '
 					f'<a id="summary-ref-log-link" href="{initial_ref_state["log_href"]}">log</a> - '
 					f'<a id="summary-ref-shortlog-link" href="{initial_ref_state["shortlog_href"]}">shortlog</a>'
@@ -385,9 +385,8 @@ def git_summary(project: str) -> HTMLResponse:
 	if descr:
 		body_parts.append(f"<p>{esc_html(descr)}</p>")
 	body_parts.append(table)
-	body_parts.append(
-		f'<div id="summary-readme-container" data-project="{esc_html(project)}">{initial_ref_state["readme_html"]}</div>'
-	)
+	body_parts.append(f'<div id="summary-readme-container" data-project="{esc_html(project)}">')
+	body_parts.append(f'{initial_ref_state["readme_html"]}</div>')
 	body_parts.append('<script src="/static/summary-ref-switcher.js"></script>')
 
 	body_parts.append(POSTAMBLE)
diff --git a/pygitweb/main.py b/pygitweb/main.py
index f94e4cc..ad0f01e 100644
--- a/pygitweb/main.py
+++ b/pygitweb/main.py
@@ -280,20 +280,17 @@ def activity_page(
 		event = item["event"]
 		oid = event["oid"]
 		if event["kind"] == "commit":
-			event_label = (
-				f"<a href='/project/{quote(project_name, safe='/')}?a=commit&h={quote(oid, safe='')}'>{esc_html(oid[:7])}</a>"
-			)
+			event_label = f"<a href='/project/{quote(project_name, safe='/')}"
+			event_label += f"?a=commit&h={quote(oid, safe='')}'>{esc_html(oid[:7])}</a>"
 		else:
 			event_label = esc_html(event["kind"])
 		description = _truncate_activity_description(event.get("description"))
-		rows.append(
-			[
-				esc_html(_format_activity_time(event["timestamp"])),
-				f"<a href='/project/{quote(project_name, safe='/')}'>{esc_html(project_name)}</a>",
-				event_label,
-				esc_html(description),
-			]
-		)
+		rows.append([
+			esc_html(_format_activity_time(event["timestamp"])) or "",
+			f"<a href='/project/{quote(project_name, safe='/')}'>{esc_html(project_name)}</a>",
+			event_label,
+			esc_html(description) or "",
+		])
 	table = env.get_template("table.html").render(
 		cols=["Time", "Project Name", "Event", "Description"],
 		rows=rows,
diff --git a/pygitweb/timeline_cache.py b/pygitweb/timeline_cache.py
index 9bc2f7e..854ecc3 100644
--- a/pygitweb/timeline_cache.py
+++ b/pygitweb/timeline_cache.py
@@ -74,14 +74,12 @@ def _collect_commit_events(repo: pygit2.Repository) -> list[TimelineEvent]:
 		if commit_oid in seen:
 			continue
 		seen.add(commit_oid)
-		events.append(
-			{
-				"timestamp": commit.commit_time,
-				"oid": commit_oid,
-				"kind": "commit",
-				"description": _commit_description(commit),
-			}
-		)
+		events.append({
+			"timestamp": commit.commit_time,
+			"oid": commit_oid,
+			"kind": "commit",
+			"description": _commit_description(commit),
+		})
 	return events
 
 
@@ -107,14 +105,12 @@ def _collect_ref_events(repo: pygit2.Repository) -> list[TimelineEvent]:
 		else:
 			continue
 
-		events.append(
-			{
-				"timestamp": timestamp,
-				"oid": oid_str,
-				"kind": "ref",
-				"description": description or None,
-			}
-		)
+		events.append({
+			"timestamp": timestamp,
+			"oid": oid_str,
+			"kind": "ref",
+			"description": description or None,
+		})
 	return events
 
 
