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

fix: prevent extra space after glossary item #14

Merged
merged 1 commit into from
Dec 1, 2023
Merged

fix: prevent extra space after glossary item #14

merged 1 commit into from
Dec 1, 2023

Conversation

drupol
Copy link
Contributor

@drupol drupol commented Dec 1, 2023

Copy link
Collaborator

@slashformotion slashformotion left a comment

Choose a reason for hiding this comment

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

just a small change to do and it's done

glossarium.typ Outdated
@@ -41,13 +41,13 @@ SOFTWARE.*/
let entlong = entry.at("long", default: "")
let textLink = if display !=none {
[#display]
} else if (is_first or long == true) and entlong != [] and entlong != "" and long != false {
Copy link
Collaborator

Choose a reason for hiding this comment

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

you should not remove this part of the condition as it breaks the gls(<key>, long=false) behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, I took the file that @Dherse provided on Discord.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh ok I got it. I will update the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here you go, let me know if it's better now.

@slashformotion slashformotion merged commit 5a52780 into typst-community:master Dec 1, 2023
1 check passed
@drupol drupol deleted the fix/extra-space branch December 1, 2023 18:33
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

Successfully merging this pull request may close these issues.

2 participants