Skip to content

Commit 5c62ddb

Browse files
authored
Merge pull request algorithmicsuperintelligence#133 from maisyhoang/main
Add text wrapping to program_page.html
2 parents 133c6d4 + 5ca4c77 commit 5c62ddb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/templates/program_page.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,18 @@
55
<title>Program {{ program_data.id }}</title>
66
<style>
77
body { font-family: Arial, sans-serif; padding: 20px; }
8-
pre { background: #f0f0f0; padding: 10px; border-radius: 5px; }
8+
/* Text wrapping for <pre> elements */
9+
pre {
10+
background: #f0f0f0;
11+
padding: 10px;
12+
border-radius: 5px;
13+
white-space: pre-wrap; /* Preserve formatting, allow wrapping */
14+
overflow-wrap: break-word; /* Break long words */
15+
}
16+
/* Text wrapping for list elements */
17+
li {
18+
overflow-wrap: break-word;
19+
}
920
</style>
1021
</head>
1122
<body>

0 commit comments

Comments
 (0)