Fossil SCM

Make extra lines like tag notifications responsive to the timeline-max-comment limit.

drh 2026-02-06 00:51 trunk
Commit 1f20d61a073c2f6eed03194d41de44b2b09d89c8838f00f15040acd1ca05ab1c
1 file changed +4
--- src/timeline.c
+++ src/timeline.c
@@ -730,10 +730,14 @@
730730
** will simply be rendered in the older format. */
731731
wiki_convert(&comment, 0, WIKI_INLINE);
732732
}
733733
wiki_hyperlink_override(0);
734734
}else{
735
+ if( mxWikiLen>0 && blob_size(&comment)>mxWikiLen ){
736
+ blob_truncate(&comment, mxWikiLen);
737
+ blob_appendf(&comment, "...");
738
+ }
735739
wiki_convert(&comment, 0, WIKI_INLINE);
736740
}
737741
}else{
738742
if( bCommentGitStyle ){
739743
/* Truncate comment at first blank line */
740744
--- 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

Keyboard Shortcuts

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