Skip to content

Commit be7d443

Browse files
committed
insert non-breaking space between entity type (e.g. Figure/Table) and number
1 parent 0ea3f43 commit be7d443

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/changelog-1.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- Use 'Appendix' as prefix for references to chapters in appendix
3434
- Index book crossrefs using shorter paths (fix path error seen in #1770)
3535
- Improve handling of solution/proof content (filter headings, support code blocks)
36+
- Insert non-breaking space between entity type (e.g. Figure/Table) and number.
3637

3738
## Code Blocks
3839

src/resources/filters/crossref/format.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616

1717
function titlePrefix(type, default, order)
1818
local prefix = title(type, default)
19-
table.insert(prefix, pandoc.Space())
19+
table.insert(prefix, nbspString())
2020
tappend(prefix, numberOption(type, order))
2121
tappend(prefix, titleDelim())
2222
table.insert(prefix, pandoc.Space())

0 commit comments

Comments
 (0)