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

Whitespaces in field value #41

Closed
zepinglee opened this issue Oct 31, 2023 · 0 comments
Closed

Whitespaces in field value #41

zepinglee opened this issue Oct 31, 2023 · 0 comments

Comments

@zepinglee
Copy link
Contributor

This parser produces extra whitespaces if the field value is in multiple lines. Yet BibTeX/Biber compresses whitespaces in field value to a single space and removes leading or trailing whitespaces.

@article{aksin,
  title        = {Effect of immobilization on catalytic characteristics of
                  saturated {Pd-N}-heterocyclic carbenes in {Mizoroki-Heck}
                  reactions},
}
---- tests::test_whitespaces stdout ----
Bibliography {
    entries: [
        Entry {
            key: "aksin",
            entry_type: Article,
            fields: {
                "title": [
                    Normal(
                        "Effect of immobilization on catalytic characteristics of\n                  saturated ",
                    ) <34..119>,
                    Verbatim(
                        "Pd-N",
                    ) <120..124>,
                    Normal(
                        "-heterocyclic carbenes in ",
                    ) <125..151>,
                    Verbatim(
                        "Mizoroki-Heck",
                    ) <152..165>,
                    Normal(
                        "\n                  reactions",
                    ) <166..194>,
                ],
            },
        },
    ],
    keys: {
        "aksin": 0,
    },
}
zepinglee added a commit to zepinglee/typst-biblatex that referenced this issue Nov 2, 2023
@reknih reknih closed this as completed in 56f8890 Nov 23, 2023
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

No branches or pull requests

1 participant