Fossil SCM
Fix over-length source code lines in timeline.c.
Commit
d7435bc283e9f39b941c1fb0d4f4caea91fd02e3b2ce2856315a5851a9f41e61
Parent
68635d60dff02af…
1 file changed
+10
-5
+10
-5
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -435,11 +435,12 @@ | ||
| 435 | 435 | db_reset(&qbranch); |
| 436 | 436 | @ <div id="m%d(gidx)" class="tl-nodemark"></div> |
| 437 | 437 | } |
| 438 | 438 | @</td> |
| 439 | 439 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 440 | - @ <td class="timeline%s(zStyle)Cell" style="background-color: %h(zBgClr);"> | |
| 440 | + @ <td class="timeline%s(zStyle)Cell" \ | |
| 441 | + @ style="background-color: %h(zBgClr);"> | |
| 441 | 442 | }else{ |
| 442 | 443 | @ <td class="timeline%s(zStyle)Cell"> |
| 443 | 444 | } |
| 444 | 445 | if( pGraph && zType[0]!='c' ){ |
| 445 | 446 | @ • |
| @@ -525,11 +526,12 @@ | ||
| 525 | 526 | |
| 526 | 527 | /* Generate extra information and hyperlinks to follow the comment. |
| 527 | 528 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 528 | 529 | */ |
| 529 | 530 | if( drawDetailEllipsis ){ |
| 530 | - @ <span class='timelineEllipsis' id='ellipsis-%d(rid)' data-id='%d(rid)'>...</span> | |
| 531 | + @ <span class='timelineEllipsis' id='ellipsis-%d(rid)'\ | |
| 532 | + @ data-id='%d(rid)'>...</span> | |
| 531 | 533 | } |
| 532 | 534 | if( tmFlags & TIMELINE_COLUMNAR ){ |
| 533 | 535 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 534 | 536 | @ <td class="timelineDetailCell" style="background-color: %h(zBgClr);"> |
| 535 | 537 | }else{ |
| @@ -722,11 +724,12 @@ | ||
| 722 | 724 | @ <tr class="timelineBottom"><td></td><td></td><td></td></tr> |
| 723 | 725 | } |
| 724 | 726 | } |
| 725 | 727 | @ </table> |
| 726 | 728 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 727 | - timeline_output_graph_javascript(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0, iTableId, 0); | |
| 729 | + timeline_output_graph_javascript(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0, | |
| 730 | + iTableId, 0); | |
| 728 | 731 | } |
| 729 | 732 | |
| 730 | 733 | /* |
| 731 | 734 | ** Change the RGB background color given in the argument in a foreground |
| 732 | 735 | ** color with the same hue. |
| @@ -1027,11 +1030,12 @@ | ||
| 1027 | 1030 | style_submenu_multichoice("y", i/2, az, isDisabled); |
| 1028 | 1031 | } |
| 1029 | 1032 | } |
| 1030 | 1033 | |
| 1031 | 1034 | /* |
| 1032 | -** Convert the current "ss" display preferences cookie into an appropriate TIMELINE_* flag | |
| 1035 | +** Convert the current "ss" display preferences cookie into an | |
| 1036 | +** appropriate TIMELINE_* flag | |
| 1033 | 1037 | */ |
| 1034 | 1038 | int timeline_ss_cookie(void){ |
| 1035 | 1039 | int tmFlags; |
| 1036 | 1040 | switch( cookie_value("ss","m")[0] ){ |
| 1037 | 1041 | case 'c': tmFlags = TIMELINE_COMPACT; break; |
| @@ -2214,11 +2218,12 @@ | ||
| 2214 | 2218 | |
| 2215 | 2219 | /* |
| 2216 | 2220 | ** Return true if the input string can be converted to a julianday. |
| 2217 | 2221 | */ |
| 2218 | 2222 | static int fossil_is_julianday(const char *zDate){ |
| 2219 | - return db_int(0, "SELECT EXISTS (SELECT julianday(%Q) AS jd WHERE jd IS NOT NULL)", zDate); | |
| 2223 | + return db_int(0, "SELECT EXISTS (SELECT julianday(%Q) AS jd" | |
| 2224 | + " WHERE jd IS NOT NULL)", zDate); | |
| 2220 | 2225 | } |
| 2221 | 2226 | |
| 2222 | 2227 | /* |
| 2223 | 2228 | ** COMMAND: timeline |
| 2224 | 2229 | ** |
| 2225 | 2230 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -435,11 +435,12 @@ | |
| 435 | db_reset(&qbranch); |
| 436 | @ <div id="m%d(gidx)" class="tl-nodemark"></div> |
| 437 | } |
| 438 | @</td> |
| 439 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 440 | @ <td class="timeline%s(zStyle)Cell" style="background-color: %h(zBgClr);"> |
| 441 | }else{ |
| 442 | @ <td class="timeline%s(zStyle)Cell"> |
| 443 | } |
| 444 | if( pGraph && zType[0]!='c' ){ |
| 445 | @ • |
| @@ -525,11 +526,12 @@ | |
| 525 | |
| 526 | /* Generate extra information and hyperlinks to follow the comment. |
| 527 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 528 | */ |
| 529 | if( drawDetailEllipsis ){ |
| 530 | @ <span class='timelineEllipsis' id='ellipsis-%d(rid)' data-id='%d(rid)'>...</span> |
| 531 | } |
| 532 | if( tmFlags & TIMELINE_COLUMNAR ){ |
| 533 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 534 | @ <td class="timelineDetailCell" style="background-color: %h(zBgClr);"> |
| 535 | }else{ |
| @@ -722,11 +724,12 @@ | |
| 722 | @ <tr class="timelineBottom"><td></td><td></td><td></td></tr> |
| 723 | } |
| 724 | } |
| 725 | @ </table> |
| 726 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 727 | timeline_output_graph_javascript(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0, iTableId, 0); |
| 728 | } |
| 729 | |
| 730 | /* |
| 731 | ** Change the RGB background color given in the argument in a foreground |
| 732 | ** color with the same hue. |
| @@ -1027,11 +1030,12 @@ | |
| 1027 | style_submenu_multichoice("y", i/2, az, isDisabled); |
| 1028 | } |
| 1029 | } |
| 1030 | |
| 1031 | /* |
| 1032 | ** Convert the current "ss" display preferences cookie into an appropriate TIMELINE_* flag |
| 1033 | */ |
| 1034 | int timeline_ss_cookie(void){ |
| 1035 | int tmFlags; |
| 1036 | switch( cookie_value("ss","m")[0] ){ |
| 1037 | case 'c': tmFlags = TIMELINE_COMPACT; break; |
| @@ -2214,11 +2218,12 @@ | |
| 2214 | |
| 2215 | /* |
| 2216 | ** Return true if the input string can be converted to a julianday. |
| 2217 | */ |
| 2218 | static int fossil_is_julianday(const char *zDate){ |
| 2219 | return db_int(0, "SELECT EXISTS (SELECT julianday(%Q) AS jd WHERE jd IS NOT NULL)", zDate); |
| 2220 | } |
| 2221 | |
| 2222 | /* |
| 2223 | ** COMMAND: timeline |
| 2224 | ** |
| 2225 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -435,11 +435,12 @@ | |
| 435 | db_reset(&qbranch); |
| 436 | @ <div id="m%d(gidx)" class="tl-nodemark"></div> |
| 437 | } |
| 438 | @</td> |
| 439 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 440 | @ <td class="timeline%s(zStyle)Cell" \ |
| 441 | @ style="background-color: %h(zBgClr);"> |
| 442 | }else{ |
| 443 | @ <td class="timeline%s(zStyle)Cell"> |
| 444 | } |
| 445 | if( pGraph && zType[0]!='c' ){ |
| 446 | @ • |
| @@ -525,11 +526,12 @@ | |
| 526 | |
| 527 | /* Generate extra information and hyperlinks to follow the comment. |
| 528 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 529 | */ |
| 530 | if( drawDetailEllipsis ){ |
| 531 | @ <span class='timelineEllipsis' id='ellipsis-%d(rid)'\ |
| 532 | @ data-id='%d(rid)'>...</span> |
| 533 | } |
| 534 | if( tmFlags & TIMELINE_COLUMNAR ){ |
| 535 | if( zBgClr && zBgClr[0] && rid!=selectedRid ){ |
| 536 | @ <td class="timelineDetailCell" style="background-color: %h(zBgClr);"> |
| 537 | }else{ |
| @@ -722,11 +724,12 @@ | |
| 724 | @ <tr class="timelineBottom"><td></td><td></td><td></td></tr> |
| 725 | } |
| 726 | } |
| 727 | @ </table> |
| 728 | if( fchngQueryInit ) db_finalize(&fchngQuery); |
| 729 | timeline_output_graph_javascript(pGraph, (tmFlags & TIMELINE_DISJOINT)!=0, |
| 730 | iTableId, 0); |
| 731 | } |
| 732 | |
| 733 | /* |
| 734 | ** Change the RGB background color given in the argument in a foreground |
| 735 | ** color with the same hue. |
| @@ -1027,11 +1030,12 @@ | |
| 1030 | style_submenu_multichoice("y", i/2, az, isDisabled); |
| 1031 | } |
| 1032 | } |
| 1033 | |
| 1034 | /* |
| 1035 | ** Convert the current "ss" display preferences cookie into an |
| 1036 | ** appropriate TIMELINE_* flag |
| 1037 | */ |
| 1038 | int timeline_ss_cookie(void){ |
| 1039 | int tmFlags; |
| 1040 | switch( cookie_value("ss","m")[0] ){ |
| 1041 | case 'c': tmFlags = TIMELINE_COMPACT; break; |
| @@ -2214,11 +2218,12 @@ | |
| 2218 | |
| 2219 | /* |
| 2220 | ** Return true if the input string can be converted to a julianday. |
| 2221 | */ |
| 2222 | static int fossil_is_julianday(const char *zDate){ |
| 2223 | return db_int(0, "SELECT EXISTS (SELECT julianday(%Q) AS jd" |
| 2224 | " WHERE jd IS NOT NULL)", zDate); |
| 2225 | } |
| 2226 | |
| 2227 | /* |
| 2228 | ** COMMAND: timeline |
| 2229 | ** |
| 2230 |