Fossil SCM

Move table.sbsdiffcols width attribute to CSS

joel 2013-08-13 02:23 trunk
Commit 4aaf5dc5ecdd0a30cd45b5afd5b0361ded7b4488
2 files changed +1 -1 +1
+1 -1
--- src/diff.c
+++ src/diff.c
@@ -1310,11 +1310,11 @@
13101310
sbsWriteText(&s, &B[b+j], SBS_TXTB);
13111311
}
13121312
}
13131313
13141314
if( s.escHtml && blob_size(s.apCols[SBS_LNA])>0 ){
1315
- blob_append(pOut, "<table class=\"sbsdiffcols\" width=\"90%\"><tr>\n", -1);
1315
+ blob_append(pOut, "<table class=\"sbsdiffcols\"><tr>\n", -1);
13161316
for(i=SBS_LNA; i<=SBS_TXTB; i++){
13171317
sbsWriteColumn(pOut, s.apCols[i], i);
13181318
blob_reset(s.apCols[i]);
13191319
}
13201320
blob_append(pOut, "</tr></table>\n", -1);
13211321
--- src/diff.c
+++ src/diff.c
@@ -1310,11 +1310,11 @@
1310 sbsWriteText(&s, &B[b+j], SBS_TXTB);
1311 }
1312 }
1313
1314 if( s.escHtml && blob_size(s.apCols[SBS_LNA])>0 ){
1315 blob_append(pOut, "<table class=\"sbsdiffcols\" width=\"90%\"><tr>\n", -1);
1316 for(i=SBS_LNA; i<=SBS_TXTB; i++){
1317 sbsWriteColumn(pOut, s.apCols[i], i);
1318 blob_reset(s.apCols[i]);
1319 }
1320 blob_append(pOut, "</tr></table>\n", -1);
1321
--- src/diff.c
+++ src/diff.c
@@ -1310,11 +1310,11 @@
1310 sbsWriteText(&s, &B[b+j], SBS_TXTB);
1311 }
1312 }
1313
1314 if( s.escHtml && blob_size(s.apCols[SBS_LNA])>0 ){
1315 blob_append(pOut, "<table class=\"sbsdiffcols\"><tr>\n", -1);
1316 for(i=SBS_LNA; i<=SBS_TXTB; i++){
1317 sbsWriteColumn(pOut, s.apCols[i], i);
1318 blob_reset(s.apCols[i]);
1319 }
1320 blob_append(pOut, "</tr></table>\n", -1);
1321
--- src/style.c
+++ src/style.c
@@ -972,10 +972,11 @@
972972
@ margin-top: 3px;
973973
@ line-height: 100%;
974974
},
975975
{ "table.sbsdiffcols",
976976
"side-by-side diff display (column-based)",
977
+ @ width: 90%;
977978
@ border-spacing: 0;
978979
@ font-size: xx-small;
979980
},
980981
{ "table.sbsdiffcols td",
981982
"sbs diff table cell",
982983
--- src/style.c
+++ src/style.c
@@ -972,10 +972,11 @@
972 @ margin-top: 3px;
973 @ line-height: 100%;
974 },
975 { "table.sbsdiffcols",
976 "side-by-side diff display (column-based)",
 
977 @ border-spacing: 0;
978 @ font-size: xx-small;
979 },
980 { "table.sbsdiffcols td",
981 "sbs diff table cell",
982
--- src/style.c
+++ src/style.c
@@ -972,10 +972,11 @@
972 @ margin-top: 3px;
973 @ line-height: 100%;
974 },
975 { "table.sbsdiffcols",
976 "side-by-side diff display (column-based)",
977 @ width: 90%;
978 @ border-spacing: 0;
979 @ font-size: xx-small;
980 },
981 { "table.sbsdiffcols td",
982 "sbs diff table cell",
983

Keyboard Shortcuts

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