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

Trimming empty lines at end of files #859

Open
bilogic opened this issue May 3, 2024 · 1 comment
Open

Trimming empty lines at end of files #859

bilogic opened this issue May 3, 2024 · 1 comment

Comments

@bilogic
Copy link

bilogic commented May 3, 2024

\```query
page
where name =~ /^Journal\/Day\//
render [[Custom/Journal]]
order by name desc
\```

I currently use the above to generate a long journal page that joins all my daily entries, the problem is, if these daily entries have empty lines at the end, it creates these ugly gaps in the journal page, anyway to automatically trim them?

@zefhemel
Copy link
Collaborator

Does your Custom/Journal template have a newline at the end too? Another way to get a bit more control over the rendering is to use render all instead of render, see: https://silverbullet.md/Query%20Language (bottom)

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

No branches or pull requests

2 participants