Skip to content

Commit

Permalink
fix: Fixed dash operator serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
hheik authored and s3bk committed Oct 31, 2024
1 parent a94544d commit bfe1fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/src/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ pub fn serialize_ops(mut ops: &[Op]) -> Result<Vec<u8>> {
Op::Restore => writeln!(f, "Q")?,
Op::Transform { matrix } => writeln!(f, "{} cm", matrix)?,
Op::LineWidth { width } => writeln!(f, "{} w", width)?,
Op::Dash { ref pattern, phase } => write!(f, "[{}] {} d", pattern.iter().format(" "), phase)?,
Op::Dash { ref pattern, phase } => writeln!(f, "[{}] {} d", pattern.iter().format(" "), phase)?,
Op::LineJoin { join } => writeln!(f, "{} j", join as u8)?,
Op::LineCap { cap } => writeln!(f, "{} J", cap as u8)?,
Op::MiterLimit { limit } => writeln!(f, "{} M", limit)?,
Expand Down

0 comments on commit bfe1fba

Please sign in to comment.