hadynz / obsidian-kindle-plugin

Sync your Kindle notes and highlights directly into your Obsidian vault
MIT License
923 stars 52 forks source link

Extra line is added when template is inserted #115

Closed retospect closed 2 years ago

retospect commented 2 years ago

My template is "- {{ text }} - [{{ location }}]({{ appLink }}) {% if note %}{{ note }} {% endif %}" (without a trailing new line)

and the goal is that it comes out as

It does come out with extra spaces though:

The extra space causes the quotes to be double-spaced instead of condensed.

vii33 commented 2 years ago

Just tested this, works on my machine. Plugin: 1.5.2 Obsidian: v0.14.6 @retospect: Did you check if you have any trailing linebreaks / whitespaces?

Template:

- {{ text }} -- [{{ location }}]({{ appLink }}) {% if note %}{{ note }} {% endif %}

Result:

## Highlights
- YoloR has many features... -- [43]()  ^ref-11627
- YOLOR, you can enroll in our YOLOR course here. -- [54]()  ^ref-17234

grafik

I think this issue can be closed.