@@ -258,7 +258,13 @@ defmodule Mudbrick do
258
258
iex> import Mudbrick
259
259
...> new(fonts: %{bodoni: Mudbrick.TestHelper.bodoni_regular()})
260
260
...> |> page(size: {100, 50})
261
- ...> |> text([{"heading\\ n", leading: 20}, "nounderline\\ n", "now ", {"underline", underline: [width: 1]}, " that"], position: {8, 40}, font_size: 8)
261
+ ...> |> text([
262
+ ...> {"heading\\ n", leading: 20},
263
+ ...> "nounderline\\ n",
264
+ ...> "now ",
265
+ ...> {"underline", underline: [width: 1]},
266
+ ...> " that"
267
+ ...> ], position: {8, 40}, font_size: 8)
262
268
...> |> render()
263
269
...> |> then(&File.write("examples/underlined_text.pdf", &1))
264
270
@@ -271,7 +277,13 @@ defmodule Mudbrick do
271
277
iex> import Mudbrick
272
278
...> new(fonts: %{bodoni: Mudbrick.TestHelper.bodoni_regular()})
273
279
...> |> page(size: {100, 50})
274
- ...> |> text([{"heading\\ n", leading: 20}, "nounderline\\ n", "now ", {"underline", underline: [width: 1]}, " that"], position: {90, 40}, font_size: 8, align: :right)
280
+ ...> |> text([
281
+ ...> {"heading\\ n", leading: 20},
282
+ ...> "nounderline\\ n",
283
+ ...> "now ",
284
+ ...> {"underline", underline: [width: 1]},
285
+ ...> " that"
286
+ ...> ], position: {90, 40}, font_size: 8, align: :right)
275
287
...> |> render()
276
288
...> |> then(&File.write("examples/underlined_text_right_align.pdf", &1))
277
289
0 commit comments