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

Export to file(s) when first line/title of an entry is very long #1527

Merged
merged 14 commits into from
Aug 13, 2022

Conversation

jonakeys
Copy link
Contributor

@jonakeys jonakeys commented Jul 1, 2022

This PR addresses issue #1272 When a journal has a long first line/title, it now exports to a (truncated) file name without throwing an error.
Also added tests for markdown and text formats.

Checklist

  • I have read the contributing doc.
  • I have included a link to the relevant issue number.
  • I have checked to ensure there aren't other open pull requests
    for the same issue.
  • I have written new tests for these changes, as needed.

Fixes #1272

@jonakeys
Copy link
Contributor Author

jonakeys commented Jul 2, 2022

The tests on Windows failed, so back to the drawing board it is.

@jonakeys
Copy link
Contributor Author

jonakeys commented Jul 2, 2022

All checks have passed! PR is open for reviewing.

Copy link
Member

@micahellison micahellison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jonakeys, thanks for working on this and for your patience in waiting for a review. I've got just a couple small nitpicks.

tests/data/journals/long_title.journal Outdated Show resolved Hide resolved
tests/lib/helpers.py Show resolved Hide resolved
Copy link
Member

@micahellison micahellison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Thanks for making the changes.

@micahellison micahellison added the bug Something isn't working label Aug 13, 2022
@micahellison micahellison merged commit fb47300 into jrnl-org:develop Aug 13, 2022
@jonakeys jonakeys deleted the file-name-too-long branch August 17, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting Entries with Long First Lines Results in "File name too long" Error
2 participants