File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed
tests/Unit/Controller/Jury Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 94
94
<tr >
95
95
<td ><b >Content</b ></td >
96
96
<td colspan =" 5" >
97
- <pre >{{ clarification .body | wrapUnquoted( 80 ) }}</pre >
97
+ <div class = " card-text " >{{ clarification .body | markdown_to_html | sanitize_html( ' app.clarification_sanitizer ' ) }}</div >
98
98
</td >
99
99
</tr >
100
100
{% if clarification .replies is not empty %}
110
110
</b >
111
111
</td >
112
112
<td colspan =" 5" >
113
- <pre >{{ reply .body | wrapUnquoted( 80 ) }}</pre >
113
+ <div class = " card-text " >{{ reply .body | markdown_to_html | sanitize_html( ' app.clarification_sanitizer ' ) }}</div >
114
114
</td >
115
115
</tr >
116
116
{% endfor %}
Original file line number Diff line number Diff line change 82
82
padding-top : 2rem ;
83
83
}
84
84
85
+ code {
86
+ font-size : .875em ;
87
+ color : rgb (214 , 51 , 132 );
88
+ word-wrap : break-word ;
89
+ }
90
+
85
91
pre {
92
+ border-top : 1px dotted #C0C0C0 ;
93
+ border-bottom : 1px dotted #C0C0C0 ;
94
+ background-color : #FAFAFA ;
86
95
margin : 0 ;
87
- white-space : pre-wrap ;
96
+ padding : 5px ;
97
+ font-family : monospace ;
98
+ white-space : pre ;
99
+ }
100
+
101
+ pre > code {
102
+ color : inherit ;
103
+ }
104
+
105
+ blockquote {
106
+ border-left : darkgrey solid .2em ;
107
+ padding-left : .5em ;
108
+ color : darkgrey ;
88
109
}
89
110
</style >
90
111
</head >
Original file line number Diff line number Diff line change @@ -179,8 +179,8 @@ public function testClarificationsHtmlExport(): void
179
179
self ::assertSelectorExists ('h1:contains("Clarifications for Demo contest") ' );
180
180
self ::assertSelectorExists ('td:contains("Example teamname") ' );
181
181
self ::assertSelectorExists ('td:contains("A: Hello World") ' );
182
- self ::assertSelectorExists ('pre :contains("Is it necessary to read the problem statement carefully?") ' );
183
- self ::assertSelectorExists ('pre :contains("Lunch is served") ' );
182
+ self ::assertSelectorExists ('div :contains("Is it necessary to read the problem statement carefully?") ' );
183
+ self ::assertSelectorExists ('div :contains("Lunch is served") ' );
184
184
}
185
185
186
186
/**
You can’t perform that action at this time.
0 commit comments