Fossil SCM
/timeline: correct rendering of event.comment entries for wiki attachments, per problem reported in [forum:749baecf6d08ecb1 | forum post 749baecf6d08ecb1].
Commit
b3e534fa88c34de598ae3bf96679374f06e5fe641d2f05b2f700d7ac0cf4a1de
Parent
b2cb7bdb5a361c5…
1 file changed
+4
-3
+4
-3
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -524,13 +524,14 @@ | ||
| 524 | 524 | @ Added wiki page "%z(href("%R/wiki?name=%t",zCom+1))%h(zCom+1)</a>" |
| 525 | 525 | }else if( zCom[0]==':' ){ |
| 526 | 526 | @ Changes to wiki page "%z(href("%R/wiki?name=%t",zCom+1))\ |
| 527 | 527 | @ %h(zCom+1)</a>" |
| 528 | 528 | }else{ |
| 529 | - /* Legacy EVENT table entry that needs to be rebuilt */ | |
| 530 | - @ Changes to a wiki page → 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); | |
| 532 | 533 | } |
| 533 | 534 | wiki_hyperlink_override(0); |
| 534 | 535 | }else{ |
| 535 | 536 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 536 | 537 | } |
| 537 | 538 |
| --- 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 → 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 |