Skip to content

Commit bfe1fba

Browse files
hheiks3bk
authored andcommitted
fix: Fixed dash operator serialization
1 parent a94544d commit bfe1fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdf/src/content.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ pub fn serialize_ops(mut ops: &[Op]) -> Result<Vec<u8>> {
629629
Op::Restore => writeln!(f, "Q")?,
630630
Op::Transform { matrix } => writeln!(f, "{} cm", matrix)?,
631631
Op::LineWidth { width } => writeln!(f, "{} w", width)?,
632-
Op::Dash { ref pattern, phase } => write!(f, "[{}] {} d", pattern.iter().format(" "), phase)?,
632+
Op::Dash { ref pattern, phase } => writeln!(f, "[{}] {} d", pattern.iter().format(" "), phase)?,
633633
Op::LineJoin { join } => writeln!(f, "{} j", join as u8)?,
634634
Op::LineCap { cap } => writeln!(f, "{} J", cap as u8)?,
635635
Op::MiterLimit { limit } => writeln!(f, "{} M", limit)?,

0 commit comments

Comments
 (0)