]> BookStack Code Mirror - bookstack/commitdiff
Fixed code block wrapping on export
authorDan Brown <redacted>
Sun, 4 Feb 2018 17:35:01 +0000 (17:35 +0000)
committerDan Brown <redacted>
Sun, 4 Feb 2018 17:35:01 +0000 (17:35 +0000)
Now wraps instead of running off the page.

Fixed #676

resources/assets/sass/export-styles.scss

index 1f7caf1d96805f8192a978dca733a949f764e909..bea516baa580754d793615427dbf0927675c0341 100644 (file)
 table {
   border-spacing: 0;
   border-collapse: collapse;
+}
+
+// Prevent code block overflow on export
+pre {
+  padding-left: 12px;
+}
+pre:after {
+  display: none;
+}
+pre code {
+  white-space: pre-wrap;
 }
\ No newline at end of file