Fossil SCM
Make extra lines like tag notifications responsive to the timeline-max-comment limit.
Commit
1f20d61a073c2f6eed03194d41de44b2b09d89c8838f00f15040acd1ca05ab1c
Parent
32493b85be26eb9…
1 file changed
+4
+4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -730,10 +730,14 @@ | ||
| 730 | 730 | ** will simply be rendered in the older format. */ |
| 731 | 731 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 732 | 732 | } |
| 733 | 733 | wiki_hyperlink_override(0); |
| 734 | 734 | }else{ |
| 735 | + if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ | |
| 736 | + blob_truncate(&comment, mxWikiLen); | |
| 737 | + blob_appendf(&comment, "..."); | |
| 738 | + } | |
| 735 | 739 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 736 | 740 | } |
| 737 | 741 | }else{ |
| 738 | 742 | if( bCommentGitStyle ){ |
| 739 | 743 | /* Truncate comment at first blank line */ |
| 740 | 744 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -730,10 +730,14 @@ | |
| 730 | ** will simply be rendered in the older format. */ |
| 731 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 732 | } |
| 733 | wiki_hyperlink_override(0); |
| 734 | }else{ |
| 735 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 736 | } |
| 737 | }else{ |
| 738 | if( bCommentGitStyle ){ |
| 739 | /* Truncate comment at first blank line */ |
| 740 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -730,10 +730,14 @@ | |
| 730 | ** will simply be rendered in the older format. */ |
| 731 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 732 | } |
| 733 | wiki_hyperlink_override(0); |
| 734 | }else{ |
| 735 | if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){ |
| 736 | blob_truncate(&comment, mxWikiLen); |
| 737 | blob_appendf(&comment, "..."); |
| 738 | } |
| 739 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 740 | } |
| 741 | }else{ |
| 742 | if( bCommentGitStyle ){ |
| 743 | /* Truncate comment at first blank line */ |
| 744 |