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

Non-breaking space #2

Closed
pantlmn opened this issue Jan 14, 2025 · 4 comments · Fixed by #3
Closed

Non-breaking space #2

pantlmn opened this issue Jan 14, 2025 · 4 comments · Fixed by #3
Assignees

Comments

@pantlmn
Copy link

pantlmn commented Jan 14, 2025

Is it possible to make space between the name and reference non-breaking?

@jmigual
Copy link
Owner

jmigual commented Jan 14, 2025

Yes it should be possible and relatively easy I think

@pantlmn
Copy link
Author

pantlmn commented Jan 14, 2025

It can be done with using #box[@my-ref], but I suppose that non-breaking space can be the default behavior.

@pantlmn
Copy link
Author

pantlmn commented Jan 16, 2025

Probably the line 129:
link(it.element.location(), [#sup #itv.reflist-n])
can be changed to:
link(it.element.location(), [#sup~#itv.reflist-n])
or even:
link(it.element.location(), [#sup#itv.reflist-n])

Second option looks better for me. This will mean that reflist name will have to contain space, like name: "Constraint ", or non-breaking space, like name: "Constraint~", but I think that forcing user to have space there is much more unconvenient.

@jmigual
Copy link
Owner

jmigual commented Jan 17, 2025

A third option is to conditionally add the ~ with a boolean toggle. I think I like it more because then the behavior is easier to understand. I'll probably implement it this evening.

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 a pull request may close this issue.

2 participants