Skip to content

Commit d68e004

Browse files
committed
Don't write empty TJs
1 parent 1469c8e commit d68e004

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/mudbrick/text_block/output.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ defmodule Mudbrick.TextBlock.Output do
124124

125125
defp reduce_parts(output, %Line{parts: []}, nil, _x_offset) do
126126
output
127-
|> add(%TJ{kerned_text: []})
128127
|> add(%TStar{})
129128
end
130129

test/mudbrick/text_block_test.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,9 @@ defmodule Mudbrick.TextBlockTest do
249249
"0 0 0 rg",
250250
"[ <014C> <010F> 12 <0116> <011D> <01B7> <00ED> <00D9> <00F4> 8 <00C0> ] TJ",
251251
"T*",
252-
"",
253252
"T*",
254253
"[ <0116> 24 <00C0> <00B5> <00FC> <00F4> <00BB> <01B7> <00ED> <00D9> <00F4> 8 <00C0> ] TJ",
255254
"T*",
256-
"",
257255
"ET"
258256
] =
259257
output(fn %{fonts: fonts} ->
@@ -419,7 +417,6 @@ defmodule Mudbrick.TextBlockTest do
419417
"83.38000000000001 0 Td",
420418
"-0.0 0 Td",
421419
"T*",
422-
"",
423420
"0.0 0 Td",
424421
"-9.26 0 Td",
425422
"T*",

0 commit comments

Comments
 (0)