Commit ·
9b2b67b
1
Parent(s): c7edf3e
style: restore text-align justify for all paragraphs; keep headings/tables left
Browse files
app/static/css/print.css
CHANGED
|
@@ -36,7 +36,7 @@ body {
|
|
| 36 |
font-size: 10pt;
|
| 37 |
line-height: 1.4;
|
| 38 |
color: #000000;
|
| 39 |
-
text-align:
|
| 40 |
-webkit-print-color-adjust: exact;
|
| 41 |
print-color-adjust: exact;
|
| 42 |
background: #ffffff;
|
|
@@ -154,7 +154,7 @@ p {
|
|
| 154 |
margin: 8pt 0 0;
|
| 155 |
font-size: 10pt;
|
| 156 |
line-height: 1.4;
|
| 157 |
-
text-align:
|
| 158 |
orphans: 3;
|
| 159 |
widows: 3;
|
| 160 |
}
|
|
@@ -976,7 +976,7 @@ table.programs td:nth-child(5) {
|
|
| 976 |
|
| 977 |
.sec-overview .hb-paragraph,
|
| 978 |
.sec-overview .p {
|
| 979 |
-
text-align:
|
| 980 |
line-height: 1.4;
|
| 981 |
}
|
| 982 |
|
|
|
|
| 36 |
font-size: 10pt;
|
| 37 |
line-height: 1.4;
|
| 38 |
color: #000000;
|
| 39 |
+
text-align: justify;
|
| 40 |
-webkit-print-color-adjust: exact;
|
| 41 |
print-color-adjust: exact;
|
| 42 |
background: #ffffff;
|
|
|
|
| 154 |
margin: 8pt 0 0;
|
| 155 |
font-size: 10pt;
|
| 156 |
line-height: 1.4;
|
| 157 |
+
text-align: justify;
|
| 158 |
orphans: 3;
|
| 159 |
widows: 3;
|
| 160 |
}
|
|
|
|
| 976 |
|
| 977 |
.sec-overview .hb-paragraph,
|
| 978 |
.sec-overview .p {
|
| 979 |
+
text-align: justify;
|
| 980 |
line-height: 1.4;
|
| 981 |
}
|
| 982 |
|
tests/test_visual_regression.py
CHANGED
|
@@ -246,9 +246,10 @@ class TestPrintCSS:
|
|
| 246 |
assert "Century Gothic" in css
|
| 247 |
assert "10pt" in css
|
| 248 |
|
| 249 |
-
def
|
| 250 |
css = _read_css()
|
| 251 |
-
assert "text-align:
|
|
|
|
| 252 |
|
| 253 |
def test_bullet_character(self):
|
| 254 |
css = _read_css()
|
|
|
|
| 246 |
assert "Century Gothic" in css
|
| 247 |
assert "10pt" in css
|
| 248 |
|
| 249 |
+
def test_justified_paragraphs(self):
|
| 250 |
css = _read_css()
|
| 251 |
+
assert "text-align: justify" in css, "Paragraphs must be justified"
|
| 252 |
+
assert "text-align: left" in css, "Headings/table cells must remain left-aligned"
|
| 253 |
|
| 254 |
def test_bullet_character(self):
|
| 255 |
css = _read_css()
|