Fossil SCM

Wrap oversize text/plain wiki and tickets and technotes and forum messages.

drh 2018-07-31 13:08 forum-v2
Commit fa8ef25777721236b40060a740316d6b0f4cec34786751ec07a3a3704b50f12d
--- src/default_css.txt
+++ src/default_css.txt
@@ -534,10 +534,14 @@
534534
pre.th1error {
535535
white-space: pre-wrap;
536536
word-wrap: break-word;
537537
color: red;
538538
}
539
+pre.textPlain {
540
+ white-space: pre-wrap;
541
+ word-wrap: break-word;
542
+}
539543
.statistics-report-graph-line {
540544
background-color: #446979;
541545
}
542546
.statistics-report-table-events th {
543547
padding: 0 1em 0 1em;
544548
--- src/default_css.txt
+++ src/default_css.txt
@@ -534,10 +534,14 @@
534 pre.th1error {
535 white-space: pre-wrap;
536 word-wrap: break-word;
537 color: red;
538 }
 
 
 
 
539 .statistics-report-graph-line {
540 background-color: #446979;
541 }
542 .statistics-report-table-events th {
543 padding: 0 1em 0 1em;
544
--- src/default_css.txt
+++ src/default_css.txt
@@ -534,10 +534,14 @@
534 pre.th1error {
535 white-space: pre-wrap;
536 word-wrap: break-word;
537 color: red;
538 }
539 pre.textPlain {
540 white-space: pre-wrap;
541 word-wrap: break-word;
542 }
543 .statistics-report-graph-line {
544 background-color: #446979;
545 }
546 .statistics-report-table-events th {
547 padding: 0 1em 0 1em;
548
+1 -1
--- src/wiki.c
+++ src/wiki.c
@@ -167,11 +167,11 @@
167167
Blob tail = BLOB_INITIALIZER;
168168
markdown_to_html(pWiki, 0, &tail);
169169
@ %s(blob_str(&tail))
170170
blob_reset(&tail);
171171
}else{
172
- @ <pre>
172
+ @ <pre class='textPlain'>
173173
@ %h(blob_str(pWiki))
174174
@ </pre>
175175
}
176176
}
177177
178178
--- src/wiki.c
+++ src/wiki.c
@@ -167,11 +167,11 @@
167 Blob tail = BLOB_INITIALIZER;
168 markdown_to_html(pWiki, 0, &tail);
169 @ %s(blob_str(&tail))
170 blob_reset(&tail);
171 }else{
172 @ <pre>
173 @ %h(blob_str(pWiki))
174 @ </pre>
175 }
176 }
177
178
--- src/wiki.c
+++ src/wiki.c
@@ -167,11 +167,11 @@
167 Blob tail = BLOB_INITIALIZER;
168 markdown_to_html(pWiki, 0, &tail);
169 @ %s(blob_str(&tail))
170 blob_reset(&tail);
171 }else{
172 @ <pre class='textPlain'>
173 @ %h(blob_str(pWiki))
174 @ </pre>
175 }
176 }
177
178

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button