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.

drh 2012-11-23 18:24 UTC ticket-enhancements
Commit 73752b328bb64f6ab3e338624add3faaf476fd0a
1 file changed +3 -1
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -344,11 +344,13 @@
344344
hyperlink_to_event_tagid(tagid<0?-tagid:tagid);
345345
}else if( (tmFlags & TIMELINE_ARTID)!=0 ){
346346
hyperlink_to_uuid(zUuid);
347347
}
348348
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 ){
350352
Blob truncated;
351353
blob_zero(&truncated);
352354
blob_append(&truncated, blob_buffer(&comment), mxWikiLen);
353355
blob_append(&truncated, "...", 3);
354356
@ %w(blob_str(&truncated))
355357
--- 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

Keyboard Shortcuts

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