henkan 0.0.0 → 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.mjs CHANGED
@@ -2146,11 +2146,11 @@ function generateAnkiNote(entry) {
2146
2146
  function generateAnkiNotesFile(list) {
2147
2147
  if (list.length > 0) {
2148
2148
  const headers = [
2149
- "#separator:tab\n",
2150
- "#html:true\n",
2151
- "#guid column:1\n",
2152
- "#notetype column:2\n",
2153
- "#deck column:3\n"
2149
+ "#separator:tab",
2150
+ "#html:true",
2151
+ "#guid column:1",
2152
+ "#notetype column:2",
2153
+ "#deck column:3"
2154
2154
  ];
2155
2155
  const ankiNotes = list.map((result) => {
2156
2156
  if (!result.noteID || !result.noteTypeName || !result.deckPath)
@@ -2162,7 +2162,8 @@ function generateAnkiNotesFile(list) {
2162
2162
  return `${result.noteID} ${result.noteTypeName} ${result.deckPath} ${note.join(" ")}`;
2163
2163
  }).join("\n").trim();
2164
2164
  if (ankiNotes.length === 0) throw new Error("Invalid list");
2165
- return `${headers.join("")}${ankiNotes}`;
2165
+ return `${headers.join("\n")}
2166
+ ${ankiNotes}`;
2166
2167
  } else console.log("No entries available for Anki notes creation");
2167
2168
  return void 0;
2168
2169
  }