Skip to content

CJK-Latin spaces should not be added to footnote numbers and superscripts (v0.14.0-rc.1 regression) #7113

@YDX-2147483647

Description

@YDX-2147483647

Description

In CSL 1.0.2 spec, there're two classes of style: in-text and note. Most styles belong to in-text, but this issue occurs only for note.

For note styles, https://github.com/typst/typst/releases/tag/v0.14.0-rc.1 introduces additional spaces around foonote markers (the numbers).

v0.13.1 (Expected):
Image

v0.14.0-rc.1:

Image
Full code
#set page(height: auto, width: 240pt, margin: 15pt)

孔乙己@key\与上大人@key。

孔乙己@key \
上大人@key

#let bib = ```bib
@misc{key,
  author = {Author},
  title = {Title},
  date = {2025-06-17},
}
```.text

#let csl = ```csl
<?xml version='1.0' encoding='utf-8'?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0">
  <info>
    <title>Minimal CSL</title>
    <id>minimal-csl</id>
  </info>
  <citation et-al-min="4" et-al-use-first="3">
    <layout delimiter="; " suffix=".">
      <text value="This doesn’t matter."/>
    </layout>
  </citation>
  <bibliography>
    <layout>
      <text value="This doesn’t matter either."/>
    </layout>
  </bibliography>
</style>
```.text

#bibliography(bytes(bib), style: bytes(csl))

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to layout, positioning, etc.regressionSomething that did work before stopped working.textText layout, shaping, internationalization, etc.urgentShould be fixed before the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions