loup-brun / hugo-cite

📝 Easily manage your bibliography and in-text citations with Hugo, the popular static-site generator.
https://labs.loupbrun.ca/hugo-cite/
Do What The F*ck You Want To Public License
108 stars 27 forks source link

Fix in-text citation untrimmed white spaces #64

Open k127 opened 1 year ago

k127 commented 1 year ago
Some text{{< cite "author2022" >}}.
And some more text {{< cite "-author2022" >}}.
A third {{< cite "author2022" >}} sentence.

Following line is what is happening, the line after is what is expected to happen:

Some text ( Author, 2022) . And some more text ( 2022) . A third ( Author, 2022) sentence.
Some text(Author, 2022). And some more text (2022). A third (Author, 2022) sentence.

blackerby commented 1 year ago

Would love to see this get merged.

xbc5 commented 1 year ago

Are these getting merged?

HassanJbara commented 1 year ago

please merge :(

xbc5 commented 1 year ago

I have not done any Hugo for ~6 months, so I am a bit rusty. I am starting a new Hugo project, so once I get used to things again in a few days I will look at merging this.