Skip to content

Commit c0a3eb6

Browse files
Move HTML style to the page head
1 parent bbb1f71 commit c0a3eb6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/labthings_fastapi/server/fallback.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ def __init__(self, *args, **kwargs):
2020
ERROR_PAGE = """
2121
<!DOCTYPE html>
2222
<html>
23-
<head>
23+
<head lang="en">
2424
<title>LabThings</title>
25+
<style>
26+
pre {
27+
white-space: pre-wrap;
28+
overflow-wrap: anywhere;
29+
}
30+
</style>
2531
</head>
2632
<body>
2733
<h1>LabThings Could't Load</h1>
@@ -39,12 +45,6 @@ def __init__(self, *args, **kwargs):
3945
<pre>{{traceback}}</pre>
4046
{{logginginfo}}
4147
</body>
42-
<style>
43-
pre {
44-
white-space: pre-wrap;
45-
overflow-wrap: anywhere;
46-
}
47-
</style>
4848
</html>
4949
"""
5050

0 commit comments

Comments
 (0)