Skip to content

Commit 9051dac

Browse files
committed
CSV table
1 parent 8ccb1a5 commit 9051dac

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

web/script_2.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,25 @@ const DIAGRAM_8_B =
143143
" └── ValueError <span class='hljs-comment'># When an argument is of right type but inappropriate value.</span>\n" +
144144
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings from/to bytes fails.</span>\n";
145145

146+
const DIAGRAM_9_A =
147+
'+------------------+---------+-----------+--------------+\n' +
148+
'| | excel | excel_tab | unix_dialect |\n' +
149+
'+------------------+---------+-----------+--------------+\n';
150+
151+
const DIAGRAM_9_B =
152+
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" +
153+
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" +
154+
"┠──────────────────┼─────────┼───────────┼──────────────┨\n" +
155+
"┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" +
156+
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" +
157+
"┃ doublequote │ True │ True │ True ┃\n" +
158+
"┃ skipinitialspace │ False │ False │ False ┃\n" +
159+
"┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" +
160+
"┃ quoting │ 0 │ 0 │ 1 ┃\n" +
161+
"┃ escapechar │ None │ None │ None ┃\n" +
162+
"┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n";
163+
164+
146165
// isFontAvailable:
147166
(function(d){function c(c){b.style.fontFamily=c;e.appendChild(b);f=b.clientWidth;e.removeChild(b);return f}var f,e=d.body,b=d.createElement("span");b.innerHTML=Array(100).join("wi");b.style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;");var g=c("monospace"),h=c("serif"),k=c("sans-serif");window.isFontAvailable=function(b){return g!==c(b+",monospace")||k!==c(b+",sans-serif")||h!==c(b+",serif")}})(document);
148167

@@ -155,6 +174,7 @@ if (isFontAvailable('Menlo')) {
155174
$(`code:contains(${DIAGRAM_6_A})`).html(DIAGRAM_6_B);
156175
$(`code:contains(${DIAGRAM_7_A})`).html(DIAGRAM_7_B);
157176
$(`code:contains(${DIAGRAM_8_A})`).html(DIAGRAM_8_B);
177+
$(`code:contains(${DIAGRAM_9_A})`).html(DIAGRAM_9_B);
158178
}
159179

160180
var isMobile = false;

0 commit comments

Comments
 (0)