typst-0.9: test/typ/text/raw-align-01.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/text/raw-align-01.typ"
( line 2 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "width") (Literal (Numeric 180.0 Pt)) ])
, SoftBreak
, Code
"typ/text/raw-align-01.typ"
( line 3 , column 2 )
(Set
(Ident (Identifier "text"))
[ NormalArg (Literal (Numeric 6.0 Pt)) ])
, ParBreak
, Code
"typ/text/raw-align-01.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "lorem")) [ NormalArg (Literal (Int 20)) ])
, SoftBreak
, Code
"typ/text/raw-align-01.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "align"))
[ NormalArg (Ident (Identifier "center"))
, NormalArg
(FuncCall
(Ident (Identifier "raw"))
[ KeyValArg (Identifier "lang") (Literal (String "typ"))
, KeyValArg (Identifier "block") (Literal (Boolean True))
, KeyValArg (Identifier "align") (Ident (Identifier "right"))
, NormalArg
(Literal
(String "#let f(x) = x\n#align(center, line(length: 1em))"))
])
])
, SoftBreak
, Code
"typ/text/raw-align-01.typ"
( line 12 , column 2 )
(FuncCall
(Ident (Identifier "lorem")) [ NormalArg (Literal (Int 20)) ])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
parbreak(),
text(body: [Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut],
size: 6.0pt),
text(body: [
], size: 6.0pt),
align(alignment: center,
body: raw(align: right,
block: true,
lang: "typ",
text: "#let f(x) = x\n#align(center, line(length: 1em))")),
text(body: [
], size: 6.0pt),
text(body: [Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut],
size: 6.0pt),
parbreak() })