Skip to content

Commit c0d93f6

Browse files
committed
Break examples over multiple lines
1 parent 627800b commit c0d93f6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lib/mudbrick.ex

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,13 @@ defmodule Mudbrick do
258258
iex> import Mudbrick
259259
...> new(fonts: %{bodoni: Mudbrick.TestHelper.bodoni_regular()})
260260
...> |> 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)
262268
...> |> render()
263269
...> |> then(&File.write("examples/underlined_text.pdf", &1))
264270
@@ -271,7 +277,13 @@ defmodule Mudbrick do
271277
iex> import Mudbrick
272278
...> new(fonts: %{bodoni: Mudbrick.TestHelper.bodoni_regular()})
273279
...> |> 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)
275287
...> |> render()
276288
...> |> then(&File.write("examples/underlined_text_right_align.pdf", &1))
277289

0 commit comments

Comments
 (0)