dpradov / keynote-nf

Tabbed notebook with RichText editor, multi-level notes and strong encryption.
Mozilla Public License 2.0
252 stars 57 forks source link

Error when exporting full tree. #696

Closed mpaulinelli closed 4 months ago

mpaulinelli commented 4 months ago

Error when exporting full tree.

When I export the current folder; current note and subtree, the program works fine. However, when I try to export current folder and full tree it gives the following error:

"Error while exporting folders: Failed to Load Stream OK" "Exported 1 folders (21 notes). Exporting was aborted due to an error. OK Cancel"

What would be wrong?

dpradov commented 4 months ago

Could you please show a screenshot with the options you have selected in Export form?

dpradov commented 4 months ago

I have tried exporting parts of the application's help file to RTF and Plain text, as well as the entire folder, and I have not found any problems. I have also done tests with exporting notes with Unicode and the same. Everything ok. Could you try to narrow down which note may be causing problems when exporting? Maybe it has some kind of strange and problematic character.

mpaulinelli commented 4 months ago

Sending a printscreen is difficult for me because I am a blind person, but I will try to describe the options. Folder headings checked === %N === node heading not checked ---%D --- fonte cises chequed 18,2,12 indent nodes not checked Export each note (node) to a separate target file checked I tried exporting the KeyNoteNF_Help.knt file

The message appeared were "Exported 1 folders (54 notes)." Exporting was aborted due to an error. OK Cancel

dpradov commented 4 months ago

The problem did not come from exporting the entire tree, but from exporting each note to a separate file. The way in which the content of each note was loaded differed from that followed when exporting all the nodes to a single file. I have unified that specific part, assimilating it to the export method about a single file, which was more correct. The method followed when exporting to separate files gave problems when exporting a note with plain text in a normal RTF folder (that is, not plain text)

Now it is fixed. It will be availble in next release.