Fossil SCM
Render timeline comments for items other than check-ins as HTML. All such comments should be automatically generated (or regenerated via "fossil rebuild") so we can control their formatting.
Commit
73752b328bb64f6ab3e338624add3faaf476fd0a
Parent
7ba3f653822d988…
1 file changed
+3
-1
+3
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -344,11 +344,13 @@ | ||
| 344 | 344 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 345 | 345 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 346 | 346 | hyperlink_to_uuid(zUuid); |
| 347 | 347 | } |
| 348 | 348 | db_column_blob(pQuery, commentColumn, &comment); |
| 349 | - if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ | |
| 349 | + if( zType[0]!='c' ){ | |
| 350 | + @ %s(blob_str(&comment)) | |
| 351 | + }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ | |
| 350 | 352 | Blob truncated; |
| 351 | 353 | blob_zero(&truncated); |
| 352 | 354 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 353 | 355 | blob_append(&truncated, "...", 3); |
| 354 | 356 | @ %w(blob_str(&truncated)) |
| 355 | 357 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -344,11 +344,13 @@ | |
| 344 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 345 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 346 | hyperlink_to_uuid(zUuid); |
| 347 | } |
| 348 | db_column_blob(pQuery, commentColumn, &comment); |
| 349 | if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 350 | Blob truncated; |
| 351 | blob_zero(&truncated); |
| 352 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 353 | blob_append(&truncated, "...", 3); |
| 354 | @ %w(blob_str(&truncated)) |
| 355 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -344,11 +344,13 @@ | |
| 344 | hyperlink_to_event_tagid(tagid<0?-tagid:tagid); |
| 345 | }else if( (tmFlags & TIMELINE_ARTID)!=0 ){ |
| 346 | hyperlink_to_uuid(zUuid); |
| 347 | } |
| 348 | db_column_blob(pQuery, commentColumn, &comment); |
| 349 | if( zType[0]!='c' ){ |
| 350 | @ %s(blob_str(&comment)) |
| 351 | }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 352 | Blob truncated; |
| 353 | blob_zero(&truncated); |
| 354 | blob_append(&truncated, blob_buffer(&comment), mxWikiLen); |
| 355 | blob_append(&truncated, "...", 3); |
| 356 | @ %w(blob_str(&truncated)) |
| 357 |