Fossil SCM

/timeline: correct rendering of event.comment entries for wiki attachments, per problem reported in [forum:749baecf6d08ecb1 | forum post 749baecf6d08ecb1].

stephan 2022-05-04 11:47 trunk
Commit b3e534fa88c34de598ae3bf96679374f06e5fe641d2f05b2f700d7ac0cf4a1de
1 file changed +4 -3
+4 -3
--- src/timeline.c
+++ src/timeline.c
@@ -524,13 +524,14 @@
524524
@ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525525
}else if( zCom[0]==':' ){
526526
@ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\
527527
@ %h(zCom+1)</a>"
528528
}else{
529
- /* Legacy EVENT table entry that needs to be rebuilt */
530
- @ Changes to a wiki page &rarr; Obsolete EVENT table information.
531
- @ Run "fossil rebuild" on the repository.
529
+ /* Assume this is an attachment message. It _might_ also
530
+ ** be a legacy-format wiki log entry, in which case it
531
+ ** will simply be rendered in the older format. */
532
+ wiki_convert(&comment, 0, WIKI_INLINE);
532533
}
533534
wiki_hyperlink_override(0);
534535
}else{
535536
wiki_convert(&comment, 0, WIKI_INLINE);
536537
}
537538
--- src/timeline.c
+++ src/timeline.c
@@ -524,13 +524,14 @@
524 @ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525 }else if( zCom[0]==':' ){
526 @ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\
527 @ %h(zCom+1)</a>"
528 }else{
529 /* Legacy EVENT table entry that needs to be rebuilt */
530 @ Changes to a wiki page &rarr; Obsolete EVENT table information.
531 @ Run "fossil rebuild" on the repository.
 
532 }
533 wiki_hyperlink_override(0);
534 }else{
535 wiki_convert(&comment, 0, WIKI_INLINE);
536 }
537
--- src/timeline.c
+++ src/timeline.c
@@ -524,13 +524,14 @@
524 @ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>"
525 }else if( zCom[0]==':' ){
526 @ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\
527 @ %h(zCom+1)</a>"
528 }else{
529 /* Assume this is an attachment message. It _might_ also
530 ** be a legacy-format wiki log entry, in which case it
531 ** will simply be rendered in the older format. */
532 wiki_convert(&comment, 0, WIKI_INLINE);
533 }
534 wiki_hyperlink_override(0);
535 }else{
536 wiki_convert(&comment, 0, WIKI_INLINE);
537 }
538

Keyboard Shortcuts

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