Update utils.py
Browse files
utils.py
CHANGED
|
@@ -64,7 +64,7 @@ def gen_html(num):
|
|
| 64 |
print(link)
|
| 65 |
hype = f'<a href="{link}" target="_blank">to link</a>'
|
| 66 |
qhtml = get_problem(link)
|
| 67 |
-
all_q += (hype + qhtml)
|
| 68 |
num_succ += 1
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Error: {e}")
|
|
@@ -80,6 +80,10 @@ def gen_html(num):
|
|
| 80 |
body {{
|
| 81 |
font-family: Arial, sans-serif;
|
| 82 |
font-size: 12pt;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}}
|
| 84 |
img.latex {{
|
| 85 |
font-size: 12pt; /* Ensure math font size matches the body text size */
|
|
|
|
| 64 |
print(link)
|
| 65 |
hype = f'<a href="{link}" target="_blank">to link</a>'
|
| 66 |
qhtml = get_problem(link)
|
| 67 |
+
all_q += (hype + qhtml + '<div class="spacer"></div>') # Add spacer div between questions
|
| 68 |
num_succ += 1
|
| 69 |
except Exception as e:
|
| 70 |
print(f"Error: {e}")
|
|
|
|
| 80 |
body {{
|
| 81 |
font-family: Arial, sans-serif;
|
| 82 |
font-size: 12pt;
|
| 83 |
+
margin: 20px; /* Add side margins */
|
| 84 |
+
}}
|
| 85 |
+
.spacer {{
|
| 86 |
+
margin-top: 30px; /* Add spacing between questions */
|
| 87 |
}}
|
| 88 |
img.latex {{
|
| 89 |
font-size: 12pt; /* Ensure math font size matches the body text size */
|