Fossil SCM

Fix minor formatting error in the HTML for hierarchical forum.

drh 2020-09-18 11:27 trunk
Commit 7221e497fc951a3630cace2bb41cd8407cc0de53b78d78d2932bc75a77876882
1 file changed +4 -3
+4 -3
--- src/forum.c
+++ src/forum.c
@@ -462,15 +462,16 @@
462462
/* Open the <div> enclosing the post. Set the class string to mark the post
463463
** as selected and/or obsolete. */
464464
iIndent = (p->pEditHead ? p->pEditHead->nIndent : p->nIndent)-1;
465465
@ <div id='forum%d(p->fpid)' class='forumTime\
466466
@ %s(bSelect ? " forumSel" : "")\
467
- @ %s(p->pEditTail ? " forumObs" : "")'\
467
+ @ %s(p->pEditTail ? " forumObs" : "")' \
468468
if( iIndent && iIndentScale ){
469
- @ style='margin-left: %d(iIndent*iIndentScale)ex'
469
+ @ style='margin-left:%d(iIndent*iIndentScale)ex;'>
470
+ }else{
471
+ @ >
470472
}
471
- @ >
472473
473474
/* If this is the first post (or an edit thereof), emit the thread title. */
474475
if( pManifest->zThreadTitle ){
475476
@ <h1>%h(pManifest->zThreadTitle)</h1>
476477
}
477478
--- src/forum.c
+++ src/forum.c
@@ -462,15 +462,16 @@
462 /* Open the <div> enclosing the post. Set the class string to mark the post
463 ** as selected and/or obsolete. */
464 iIndent = (p->pEditHead ? p->pEditHead->nIndent : p->nIndent)-1;
465 @ <div id='forum%d(p->fpid)' class='forumTime\
466 @ %s(bSelect ? " forumSel" : "")\
467 @ %s(p->pEditTail ? " forumObs" : "")'\
468 if( iIndent && iIndentScale ){
469 @ style='margin-left: %d(iIndent*iIndentScale)ex'
 
 
470 }
471 @ >
472
473 /* If this is the first post (or an edit thereof), emit the thread title. */
474 if( pManifest->zThreadTitle ){
475 @ <h1>%h(pManifest->zThreadTitle)</h1>
476 }
477
--- src/forum.c
+++ src/forum.c
@@ -462,15 +462,16 @@
462 /* Open the <div> enclosing the post. Set the class string to mark the post
463 ** as selected and/or obsolete. */
464 iIndent = (p->pEditHead ? p->pEditHead->nIndent : p->nIndent)-1;
465 @ <div id='forum%d(p->fpid)' class='forumTime\
466 @ %s(bSelect ? " forumSel" : "")\
467 @ %s(p->pEditTail ? " forumObs" : "")' \
468 if( iIndent && iIndentScale ){
469 @ style='margin-left:%d(iIndent*iIndentScale)ex;'>
470 }else{
471 @ >
472 }
 
473
474 /* If this is the first post (or an edit thereof), emit the thread title. */
475 if( pManifest->zThreadTitle ){
476 @ <h1>%h(pManifest->zThreadTitle)</h1>
477 }
478

Keyboard Shortcuts

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