Skip to main content

strip_vml_comment_shapes_from_vml

Function strip_vml_comment_shapes_from_vml 

Source
pub fn strip_vml_comment_shapes_from_vml(vml_bytes: &[u8]) -> Option<Vec<u8>>
Expand description

Remove comment shapes while retaining non-comment VML content.

A comment shape is a VML shape element containing an Excel ClientData element whose ObjectType is Note. Elements are matched by namespace and local name, so any prefix, quote style, or attribute whitespace is accepted. All other content is preserved byte-for-byte. Returns None when no non-comment shape remains or the VML cannot be parsed.