mirror of
https://github.com/mfontanini/presenterm.git
synced 2025-05-05 15:32:58 +00:00
chore: don't include script when outputting to pdf
This commit is contained in:
parent
0d4ffceede
commit
519aad16e8
@ -217,6 +217,17 @@ impl ExportRenderer {
|
||||
width: {width}px;
|
||||
}}"
|
||||
);
|
||||
let html_script = match self.output_type {
|
||||
Renderer::Pdf => String::new(),
|
||||
Renderer::Html => {
|
||||
format!(
|
||||
"
|
||||
<script>
|
||||
{script}
|
||||
</script>"
|
||||
)
|
||||
}
|
||||
};
|
||||
let html = format!(
|
||||
r#"
|
||||
<html>
|
||||
@ -227,10 +238,7 @@ impl ExportRenderer {
|
||||
</head>
|
||||
<body>
|
||||
{html_body}
|
||||
<script>
|
||||
{script}
|
||||
</script>
|
||||
|
||||
{html_script}
|
||||
</body>
|
||||
</html>"#
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user