henkan 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -2203,11 +2203,11 @@ function generateAnkiNote(entry) {
2203
2203
  function generateAnkiNotesFile(list) {
2204
2204
  if (list.length > 0) {
2205
2205
  const headers = [
2206
- "#separator:tab\n",
2207
- "#html:true\n",
2208
- "#guid column:1\n",
2209
- "#notetype column:2\n",
2210
- "#deck column:3\n"
2206
+ "#separator:tab",
2207
+ "#html:true",
2208
+ "#guid column:1",
2209
+ "#notetype column:2",
2210
+ "#deck column:3"
2211
2211
  ];
2212
2212
  const ankiNotes = list.map((result) => {
2213
2213
  if (!result.noteID || !result.noteTypeName || !result.deckPath)
@@ -2219,7 +2219,8 @@ function generateAnkiNotesFile(list) {
2219
2219
  return `${result.noteID} ${result.noteTypeName} ${result.deckPath} ${note.join(" ")}`;
2220
2220
  }).join("\n").trim();
2221
2221
  if (ankiNotes.length === 0) throw new Error("Invalid list");
2222
- return `${headers.join("")}${ankiNotes}`;
2222
+ return `${headers.join("\n")}
2223
+ ${ankiNotes}`;
2223
2224
  } else console.log("No entries available for Anki notes creation");
2224
2225
  return void 0;
2225
2226
  }