Skip to content

Commit

Permalink
silly: treat ALL table header rows as headers
Browse files Browse the repository at this point in the history
  • Loading branch information
akpi816218 committed Nov 20, 2024
1 parent c78eeca commit e135702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for (const file of Files) {
let subSectionStack: Entry[] = [];
let title = null;
let headers: string[] = ['Word', 'Meaning'];
let justStartedNewSection = false;
let justStartedNewSection = true;
for (const row of rows) {
if (h2Matcher.test(row)) {
title = row.slice(3);
Expand All @@ -60,6 +60,7 @@ for (const file of Files) {
if (justStartedNewSection) {
headers = [word, meaning, ...extra];
justStartedNewSection = false;
console.log({ headers, file });
} else {
subSectionStack.push({ word, meaning, extra });
CompleteDictionaryStack.push({
Expand Down

0 comments on commit e135702

Please sign in to comment.