17 lines
333 B
Rust
17 lines
333 B
Rust
![]() |
use crate::cfg::Cfg;
|
||
|
|
||
|
pub fn minify_instruction(
|
||
|
cfg: &Cfg,
|
||
|
out: &mut Vec<u8>,
|
||
|
code: &[u8],
|
||
|
ended: bool,
|
||
|
) -> () {
|
||
|
if !cfg.remove_processing_instructions {
|
||
|
out.extend_from_slice(b"<?");
|
||
|
out.extend_from_slice(&code);
|
||
|
if ended {
|
||
|
out.extend_from_slice(b"?>");
|
||
|
};
|
||
|
};
|
||
|
}
|