typst-0.7: test/typ/layout/terms-03.out
--- parse tree ---
[ Code
"typ/layout/terms-03.typ"
( line 1 , column 2 )
(Let
(BasicBind (Just (Identifier "test")))
(FuncExpr
[ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
(Block
(CodeBlock
[ If
[ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
, Block (Content [ Text "\9989" ])
)
, ( Literal (Boolean True)
, Block
(Content
[ Text "\10060"
, Text "("
, Code
"typ/layout/terms-03.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/layout/terms-03.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Code
"typ/layout/terms-03.typ"
( line 3 , column 2 )
(Set
(Ident (Identifier "text"))
[ NormalArg (Literal (Numeric 8.0 Pt)) ])
, SoftBreak
, DescListItem
[ Text "First" , Space , Text "list" ]
[ Code
"typ/layout/terms-03.typ"
( line 4 , column 16 )
(FuncCall
(Ident (Identifier "lorem")) [ NormalArg (Literal (Int 6)) ])
, SoftBreak
]
, SoftBreak
, Code
"typ/layout/terms-03.typ"
( line 6 , column 2 )
(Set
(Ident (Identifier "terms"))
[ KeyValArg
(Identifier "hanging-indent") (Literal (Numeric 30.0 Pt))
])
, SoftBreak
, DescListItem
[ Text "Second" , Space , Text "list" ]
[ Code
"typ/layout/terms-03.typ"
( line 7 , column 17 )
(FuncCall
(Ident (Identifier "lorem")) [ NormalArg (Literal (Int 5)) ])
, ParBreak
]
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
], size: 8.0pt),
terms(children: ((text(body: [First list],
size: 8.0pt),
{ text(body: [Lorem ipsum dolor sit amet, consectetur],
size: 8.0pt),
text(body: [
],
size: 8.0pt) }))),
text(body: [
], size: 8.0pt),
terms(children: ((text(body: [Second list],
size: 8.0pt),
{ text(body: [Lorem ipsum dolor sit amet,],
size: 8.0pt),
parbreak() })),
hanging-indent: 30.0pt) })