mirror of
https://github.com/typst/typst
synced 2025-08-23 11:14:13 +08:00
Revert unrelated changes
This commit is contained in:
parent
fad03a474b
commit
4d971f124e
@ -3,7 +3,6 @@ use unicode_bidi::{BidiInfo, Level as BidiLevel};
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct Run<'a> {
|
pub struct Run<'a> {
|
||||||
pub item: Item<'a>,
|
pub item: Item<'a>,
|
||||||
pub range: Range,
|
pub range: Range,
|
||||||
|
@ -560,7 +560,6 @@ impl IntoValue for CslSource {
|
|||||||
/// memoization) for the whole document. This setup is necessary because
|
/// memoization) for the whole document. This setup is necessary because
|
||||||
/// citation formatting is inherently stateful and we need access to all
|
/// citation formatting is inherently stateful and we need access to all
|
||||||
/// citations to do it.
|
/// citations to do it.
|
||||||
#[derive(Debug)]
|
|
||||||
pub(super) struct Works {
|
pub(super) struct Works {
|
||||||
/// Maps from the location of a citation group to its rendered content.
|
/// Maps from the location of a citation group to its rendered content.
|
||||||
pub citations: HashMap<Location, SourceResult<Content>>,
|
pub citations: HashMap<Location, SourceResult<Content>>,
|
||||||
@ -593,7 +592,7 @@ impl Works {
|
|||||||
|
|
||||||
/// Context for generating the bibliography.
|
/// Context for generating the bibliography.
|
||||||
struct Generator<'a> {
|
struct Generator<'a> {
|
||||||
/// The routines that are used to evaluate mathematical material in citations.
|
/// The routines that is used to evaluate mathematical material in citations.
|
||||||
routines: &'a Routines,
|
routines: &'a Routines,
|
||||||
/// The world that is used to evaluate mathematical material in citations.
|
/// The world that is used to evaluate mathematical material in citations.
|
||||||
world: Tracked<'a, dyn World + 'a>,
|
world: Tracked<'a, dyn World + 'a>,
|
||||||
@ -610,7 +609,7 @@ struct Generator<'a> {
|
|||||||
|
|
||||||
/// Details about a group of merged citations. All citations are put into groups
|
/// Details about a group of merged citations. All citations are put into groups
|
||||||
/// of adjacent ones (e.g., `@foo @bar` will merge into a group of length two).
|
/// of adjacent ones (e.g., `@foo @bar` will merge into a group of length two).
|
||||||
/// Even single citations will be put into groups of length one.
|
/// Even single citations will be put into groups of length ones.
|
||||||
struct GroupInfo {
|
struct GroupInfo {
|
||||||
/// The group's location.
|
/// The group's location.
|
||||||
location: Location,
|
location: Location,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user