Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Updated styles/skins. Built-in skin 4 can now wrap lines. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | jan-sbsdiff |
| Files: | files | file ages | folders |
| SHA1: |
1c40493cb5cdae60cd1f3d640204e05c |
| User & Date: | jan 2011-10-16 00:14:28.112 |
Context
|
2011-10-16
| ||
| 02:07 | Separate sbsdiff block separator meta-rows a little more from regular rows in built-in skin 4. check-in: 7a47abe17f user: jan tags: jan-sbsdiff | |
| 00:14 | Updated styles/skins. Built-in skin 4 can now wrap lines. check-in: 1c40493cb5 user: jan tags: jan-sbsdiff | |
|
2011-10-15
| ||
| 21:25 | Add sbsdiff link to the /info page. check-in: 286f09508c user: jan tags: jan-sbsdiff | |
Changes
Changes to src/diff.c.
| ︙ | ︙ | |||
681 682 683 684 685 686 687 |
}else{
if( !allowExp )
continue;
@ <tr style="display:none;">
}
copylimline(linebuf, &c.aFrom[iFrom+j], collim);
| | > | > | | | | | | | | | 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 |
}else{
if( !allowExp )
continue;
@ <tr style="display:none;">
}
copylimline(linebuf, &c.aFrom[iFrom+j], collim);
@ <td class="lineno">%d(iFrom+j+1)</td>
@ <td class="srcline">%h(linebuf)</td>
@ <td> </td>
copylimline(linebuf, &c.aTo[iTo+j], collim);
@ <td class="lineno">%d(iTo+j+1)</td>
@ <td class="srcline">%h(linebuf)</td>
@ </tr>
}
iFrom+=c.aEdit[i];
iTo+=c.aEdit[i];
if( c.aEdit[i+1]!=0 && c.aEdit[i+2]!=0 ){
int lim;
lim = c.aEdit[i+1] > c.aEdit[i+2] ? c.aEdit[i+1] : c.aEdit[i+2];
/* Assume changed lines */
for( j=0; j<lim; j++ ){
int len;
@ <tr>
if( j<c.aEdit[i+1] ){
copylimline(linebuf, &c.aFrom[iFrom+j], collim);
@ <td class="changed lineno">%d(iFrom+j+1)</td>
@ <td class="changed srcline">%h(linebuf)</td>
}else{
@ <td colspan="2" class="changedvoid"/>
}
@ <td class="changed">|</td>
if( j<c.aEdit[i+2] ){
copylimline(linebuf, &c.aTo[iTo+j], collim);
@ <td class="changed lineno">%d(iTo+j+1)</td>
@ <td class="changed srcline">%h(linebuf)</td>
}else{
@ <td colspan="2" class="changedvoid"/>
}
@ </tr>
}
iFrom+=c.aEdit[i+1];
iTo+=c.aEdit[i+2];
}else{
/* Process deleted lines */
for( j=0; j<c.aEdit[i+1]; j++ ){
int len;
@ <tr>
copylimline(linebuf, &c.aFrom[iFrom+j], collim);
@ <td class="removed lineno">%d(iFrom+j+1)</td>
@ <td class="removed srcline">%h(linebuf)</td>
@ <td><</td>
@ <td colspan="2" class="removedvoid"/>
@ </tr>
}
iFrom+=c.aEdit[i+1];
/* Process inserted lines */
for( j=0; j<c.aEdit[i+2]; j++ ){
int len;
@ <tr>
@ <td colspan="2" class="addedvoid"/>
@ <td>></td>
copylimline(linebuf, &c.aTo[iTo+j], collim);
@ <td class="added lineno">%d(iTo+j+1)</td>
@ <td class="added srcline">%h(linebuf)</td>
@ </tr>
}
iTo+=c.aEdit[i+2];
}
i+=3;
|
| ︙ | ︙ |
Changes to src/skins.c.
| ︙ | ︙ | |||
1019 1020 1021 1022 1023 1024 1025 |
@ textarea {
@ font-size: 1em;
@ }
@
@ /* Side-by-side diff */
@ table.sbsdiff {
@ background-color: white;
| | | < > > | | < > > | > | > > > > > > > | > | > > | 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
@ textarea {
@ font-size: 1em;
@ }
@
@ /* Side-by-side diff */
@ table.sbsdiff {
@ background-color: white;
@ font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace;
@ font-size: 8pt;
@ border-collapse:collapse;
@ width: 98%;
@ border: 1px #000 dashed;
@ margin-left: auto;
@ margin-right: auto;
@ }
@
@ table.sbsdiff th.diffhdr {
@ border-bottom: dotted;
@ border-width: 1px;
@ }
@
@ table.sbsdiff tr td {
@ padding-left: 3px;
@ padding-right: 3px;
@ margin: 0px;
@ vertical-align: top;
@ white-space: pre-wrap;
@ }
@
@ table.sbsdiff tr td.lineno {
@ text-align: right;
@ /* border-bottom: 1px solid rgb(220, 220, 220); */
@ }
@
@ table.sbsdiff tr td.srcline {
@ max-width: 400px;
@ /* Nota bene: May partially hide long lines witout whitespaces */
@ overflow: hidden;
@ /* border-bottom: 1px solid rgb(220, 220, 220); */
@ }
@
@ table.sbsdiff tr td.meta {
@ background-color: rgb(170, 160, 255);
@ text-align: center;
@ }
@
@ table.sbsdiff tr td.added {
@ background-color: rgb(180, 250, 180);
@ /* border-bottom: 1px solid rgb(160, 230, 160); */
@ }
@
@ table.sbsdiff tr td.removed {
@ background-color: rgb(250, 130, 130);
@ /* border-bottom: 1px solid rgb(230, 110, 110); */
@ }
@
@ table.sbsdiff tr td.changed {
@ background-color: rgb(210, 210, 200);
@ /* border-bottom: 1px solid rgb(190, 190, 180); */
@ }');
@ REPLACE INTO config(name,mtime,value) VALUES('header',now(),'<html>
@ <head>
@ <title>$<project_name>: $<title></title>
@ <link rel="alternate" type="application/rss+xml" title="RSS Feed"
@ href="$home/timeline.rss">
@ <link rel="stylesheet" href="$home/style.css?black2" type="text/css"
|
| ︙ | ︙ |
Changes to src/style.c.
| ︙ | ︙ | |||
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 |
@ table.sbsdiff {
@ font-family: fixed, Dejavu Sans Mono, Monaco, Lucida Console, monospace;
@ font-size: 10pt;
@ border-collapse:collapse;
@ white-space: pre;
@ width: 98%;
@ border: 1px #000 dashed;
@ }
@
@ table.sbsdiff th.diffhdr {
@ border-bottom: dotted;
@ border-width: 1px;
@ }
@
@ table.sbsdiff tr td {
@ white-space: pre;
@ padding-left: 3px;
@ padding-right: 3px;
@ margin: 0px;
@ }
@
@ table.sbsdiff tr td.lineno {
@ text-align: right;
@ }
@
@ table.sbsdiff tr td.meta {
@ background-color: rgb(170, 160, 255);
@ text-align: center;
@ }
@
@ table.sbsdiff tr td.added {
@ background-color: rgb(180, 250, 180);
@ }
@
@ table.sbsdiff tr td.removed {
@ background-color: rgb(250, 130, 130);
@ }
@
@ table.sbsdiff tr td.changed {
@ background-color: rgb(210, 210, 200);
@ }
;
/* The following table contains bits of default CSS that must
** be included if they are not found in the application-defined
** CSS.
*/
| > > > > > > > > > > > > > > > > | 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
@ table.sbsdiff {
@ font-family: fixed, Dejavu Sans Mono, Monaco, Lucida Console, monospace;
@ font-size: 10pt;
@ border-collapse:collapse;
@ white-space: pre;
@ width: 98%;
@ border: 1px #000 dashed;
@ margin-left: auto;
@ margin-right: auto;
@ }
@
@ table.sbsdiff th.diffhdr {
@ border-bottom: dotted;
@ border-width: 1px;
@ }
@
@ table.sbsdiff tr td {
@ white-space: pre;
@ padding-left: 3px;
@ padding-right: 3px;
@ margin: 0px;
@ vertical-align: top;
@ }
@
@ table.sbsdiff tr td.lineno {
@ text-align: right;
@ }
@
@ table.sbsdiff tr td.srcline {
@ }
@
@ table.sbsdiff tr td.meta {
@ background-color: rgb(170, 160, 255);
@ text-align: center;
@ }
@
@ table.sbsdiff tr td.added {
@ background-color: rgb(180, 250, 180);
@ }
@ table.sbsdiff tr td.addedvoid {
@ background-color: rgb(190, 190, 180);
@ }
@
@ table.sbsdiff tr td.removed {
@ background-color: rgb(250, 130, 130);
@ }
@ table.sbsdiff tr td.removedvoid {
@ background-color: rgb(190, 190, 180);
@ }
@
@ table.sbsdiff tr td.changed {
@ background-color: rgb(210, 210, 200);
@ }
@ table.sbsdiff tr td.changedvoid {
@ background-color: rgb(190, 190, 180);
@ }
@
;
/* The following table contains bits of default CSS that must
** be included if they are not found in the application-defined
** CSS.
*/
|
| ︙ | ︙ |