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

Header gets indented when template inserts #16

Closed
23tux opened this issue Nov 25, 2020 · 6 comments
Closed

Header gets indented when template inserts #16

23tux opened this issue Nov 25, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@23tux
Copy link

23tux commented Nov 25, 2020

Plugin informations (please complete the following information):

  • OS: macOS 10.15.7
  • Templater version: 0.4.2
  • Obsidian version: 0.9.15
  • Templater settings: template Folder Template, Timeout 5, Custom Command:
{{now}}
date +"%Y-%m-%dT%H:%M"

Describe the bug
When I insert a template inside a header, it gets indented (see gif)

Expected behavior
Indentation should stay the same.

Screenshots
Kapture 2020-11-25 at 9 28 21

@23tux 23tux added the bug Something isn't working label Nov 25, 2020
@23tux
Copy link
Author

23tux commented Dec 19, 2020

Any news on this? Is there a way I can help?

@SilentVoid13
Copy link
Owner

Hey @23tux, sorry for the long wait, completely missed this post.
Do you still experience this bug ?
I'm not able to reproduce this bug, this works fine for me. However, this may be a macOS specific bug, but I don't have a mac i can test this on.
Does the indentation appear on all templates ?
Try with internal templates like for example {{tp_today:f="YYYY-MM-DDTHH:mm"}}

@23tux
Copy link
Author

23tux commented Dec 22, 2020

Hi @SilentVoid13, no hurry!

Yes, this happens on all templates as well as for internal template, I just tried it out.

Let me know if I can be of any help, I'm happy to debug on macOS, just need some guidance.

@23tux
Copy link
Author

23tux commented Feb 28, 2021

@SilentVoid13 any way I can help with this issue? I'm happy to try for a PR if you have some guidance where to start :)

@SilentVoid13
Copy link
Owner

Hey @23tux, sorry for the late response, completely forgot about this issue.
Templater had a huge update recently. It now has a new syntax, you'll need to update your existing templates.
This update should fix a lot of things, could you update to Templater's latest version, restart obsidian, update your existing templates with the new syntax and tell me if the bug still persists ?

@23tux
Copy link
Author

23tux commented Apr 13, 2021

@SilentVoid13 No problem, I just tried it out, and it works like a charm!

Plus I really really like the new syntax! Thanks so much for the work!

@23tux 23tux closed this as completed Apr 13, 2021
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

No branches or pull requests

2 participants