Fossil

Check-in [73752b32]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ticket-enhancements
Files: files | file ages | folders
SHA1:73752b328bb64f6ab3e338624add3faaf476fd0a
User & Date: drh 2012-11-23 18:24:44
Context
2012-11-23
18:32
No - render non-check-in timeline comments as wiki, since that is needed to resolve hyperlinks. check-in: 5139ad6e user: drh tags: ticket-enhancements
18:24
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. check-in: 73752b32 user: drh tags: ticket-enhancements
16:37
Add the [string trim ...] command to TH1. Accept query parameters in tktview. check-in: 7ba3f653 user: drh tags: ticket-enhancements
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

342
343
344
345
346
347
348


349
350
351
352
353
354
355
356
      }
    }else if( zType[0]=='e' && tagid ){
      hyperlink_to_event_tagid(tagid<0?-tagid:tagid);
    }else if( (tmFlags & TIMELINE_ARTID)!=0 ){
      hyperlink_to_uuid(zUuid);
    }
    db_column_blob(pQuery, commentColumn, &comment);


    if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){
      Blob truncated;
      blob_zero(&truncated);
      blob_append(&truncated, blob_buffer(&comment), mxWikiLen);
      blob_append(&truncated, "...", 3);
      @ %w(blob_str(&truncated))
      blob_reset(&truncated);
    }else{







>
>
|







342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
      }
    }else if( zType[0]=='e' && tagid ){
      hyperlink_to_event_tagid(tagid<0?-tagid:tagid);
    }else if( (tmFlags & TIMELINE_ARTID)!=0 ){
      hyperlink_to_uuid(zUuid);
    }
    db_column_blob(pQuery, commentColumn, &comment);
    if( zType[0]!='c' ){
      @ %s(blob_str(&comment))
    }else if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){
      Blob truncated;
      blob_zero(&truncated);
      blob_append(&truncated, blob_buffer(&comment), mxWikiLen);
      blob_append(&truncated, "...", 3);
      @ %w(blob_str(&truncated))
      blob_reset(&truncated);
    }else{