This commit is contained in:
Nathan Wang 2020-07-03 22:31:43 -07:00
parent 545be6c9e4
commit 01b1bb33bf
2 changed files with 6 additions and 2 deletions

View file

@ -223,7 +223,7 @@ public class roboherd_buffered_reader_string_tokenizer {
Faster methods of reading input exist too - Even faster than `BufferedReader` is a custom-written Fast I/O class that uses `InputStream`. Note that this custom class is similar to the custom-written `FastIO.h` in the C++ section, as both read input through a byte buffer.
<spoiler title="320ms>
<spoiler title="320ms">
```java
import java.util.*;

View file

@ -7,7 +7,11 @@ import vsDark from 'prism-react-renderer/themes/vsDark';
export default ({ children, className }) => {
if (className === undefined) {
// no styling, just a regular pre tag
return <pre className="rounded bg-gray-100 p-4">{children}</pre>;
return (
<pre className="rounded bg-gray-100 p-4 whitespace-pre-wrap">
{children}
</pre>
);
}
const language = className.replace(/language-/, '');
return (