Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug report) ENEX import todo items #3511

Closed
avidrissman opened this issue Jan 12, 2023 · 2 comments
Closed

(Bug report) ENEX import todo items #3511

avidrissman opened this issue Jan 12, 2023 · 2 comments

Comments

@avidrissman
Copy link

Trilium Version

0.58.4

What operating system are you using?

Other Linux

What is your setup?

Local (no sync)

Operating System Version

Synology DSM 7.1

Description

Mac Legacy Evernote .enex files have checkboxes:

<en-todo checked="true" />
<en-todo checked="false" />

These get dropped during import into Trilium. The .enex importer code attempts to handle them:

content = content.replace(/<en-todo\s+checked="true"\/>/g, "\u2611 ");
content = content.replace(/<en-todo(\s+checked="false")?\/>/g, "\u2610 ");

However, the regex that it uses does not allow for a space between the final quote and the closing />. I tested a change in the regexes to allow for an optional space, and the enex imported correctly.

My apologies that I cannot give you a PR. My work forbids me from contributing to projects with certain licenses. I hope you understand.

Error logs

No response

@avidrissman
Copy link
Author

Note Export.1.enex.zip

A sample.

@zadam zadam changed the title (Bug report) (Bug report) ENEX import todo items Jan 12, 2023
@zadam zadam closed this as completed in 4f4c3ef Jan 12, 2023
@zadam
Copy link
Owner

zadam commented Jan 12, 2023

Thanks, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants