Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
51a509d9
"vscode:/vscode.git/clone" did not exist on "a003ce03e48173090ce6d4193cb9440505b400cd"
Commit
51a509d9
authored
Aug 03, 2017
by
Dave Machado
Browse files
add entry count to final json
parent
0f427d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/md2json.js
View file @
51a509d9
...
...
@@ -37,6 +37,7 @@ function handle(filename, anchor) {
var
col_num
=
0
;
var
cols
=
[];
var
rows
=
[];
var
entry_count
=
0
;
function
read_line
()
{
return
lines
[
cur_line
++
];
...
...
@@ -100,6 +101,7 @@ function handle(filename, anchor) {
}
rows
.
push
(
row
);
entry_count
++
;
line
=
read_line
()
}
...
...
@@ -113,6 +115,7 @@ function handle(filename, anchor) {
data
.
push
(
ele
);
}
}
root
[
"
count
"
]
=
entry_count
;
root
[
table_name
]
=
data
;
}
console
.
log
(
JSON
.
stringify
(
root
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment