Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | When rendering fossil-wiki forum posts, add a wrapper DIV around them so that the CSS which expects that for markdown and plain-text posts still applies. This fixes the sideways layout of fossil-wiki posts like that seen in forumpost/3d709776b8. Note that a simpler fix would be to add the wrapper element to wiki_render_by_mimetype(), but that might have undesired side effects in/via the many other uses of that function. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7caaa287b82a19988adb4a8dc6797fc0 |
User & Date: | stephan 2020-09-02 10:55:46 |
Context
2020-09-03
| ||
19:04 | Make sure that any newlines in the CSP are converted into simple spaces before the CSP is added to an HTTP header. This *might* fix a problem reported on the forum. ... (check-in: e0f2283c user: drh tags: trunk) | |
2020-09-02
| ||
10:55 | When rendering fossil-wiki forum posts, add a wrapper DIV around them so that the CSS which expects that for markdown and plain-text posts still applies. This fixes the sideways layout of fossil-wiki posts like that seen in forumpost/3d709776b8. Note that a simpler fix would be to add the wrapper element to wiki_render_by_mimetype(), but that might have undesired side effects in/via the many other uses of that function. ... (check-in: 7caaa287 user: stephan tags: trunk) | |
2020-08-30
| ||
20:29 | Fix a db_unprotect() call in the Admin pages. ... (check-in: b9fa7e28 user: drh tags: trunk) | |
Changes
Changes to src/forum.c.
︙ | ︙ | |||
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 | @ <h1>%h(zTitle)</h1> }else{ @ <h1><i>Deleted</i></h1> } } if( zContent && zContent[0] ){ Blob x; if( bScroll ){ @ <div class='forumPostBody'> }else{ @ <div class='forumPostFullBody'> } blob_init(&x, 0, 0); blob_append(&x, zContent, -1); safe_html_context(DOCSRC_FORUM); wiki_render_by_mimetype(&x, zMimetype); blob_reset(&x); @ </div> }else{ @ <i>Deleted</i> } if( zClass ){ @ </div> | > > > > > > > > > > > > > | 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | @ <h1>%h(zTitle)</h1> }else{ @ <h1><i>Deleted</i></h1> } } if( zContent && zContent[0] ){ Blob x; const int isFossilWiki = zMimetype==0 || fossil_strcmp(zMimetype, "text/x-fossil-wiki")==0; if( bScroll ){ @ <div class='forumPostBody'> }else{ @ <div class='forumPostFullBody'> } blob_init(&x, 0, 0); blob_append(&x, zContent, -1); safe_html_context(DOCSRC_FORUM); if( isFossilWiki ){ /* Markdown and plain-text rendering add a wrapper DIV resp. PRE ** element around the post, and some CSS relies on its existence ** in order to handle expansion/collapse of the post. Fossil ** Wiki rendering does not do so, so we must wrap those manually ** here. */ @ <div class='fossilWiki'> } wiki_render_by_mimetype(&x, zMimetype); if( isFossilWiki ){ @ </div> } blob_reset(&x); @ </div> }else{ @ <i>Deleted</i> } if( zClass ){ @ </div> |
︙ | ︙ |