mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 17:57:06 +00:00
craft-pptx: drop DeckCraft issue numbers from reader comments
This commit is contained in:
@@ -192,7 +192,7 @@ fn choice_has_model3d(el: &El, rels: &Rels) -> bool {
|
||||
|
||||
/// Bytes of tags one import copies into the model, every tags part and reference together: a
|
||||
/// small compressed tags part listed by many shapes, or many times by one, must not grow without
|
||||
/// bound (#1164). The package budgets (`opc::MAX_XML_PART`, `MAX_TOTAL`, #1283) bound what is
|
||||
/// bound. The package budgets (`opc::MAX_XML_PART`, `MAX_TOTAL`, #1283) bound what is
|
||||
/// parsed; this bounds what is copied from it.
|
||||
pub const MAX_TAG_BYTES: usize = 64 << 20;
|
||||
/// What each copied pair costs besides its text, so empty pairs count too.
|
||||
@@ -200,7 +200,7 @@ const TAG_PAIR_COST: usize = std::mem::size_of::<(String, String)>();
|
||||
|
||||
/// Add-in tags named by `holder`'s `p:custDataLst`: the name/value pairs of each tags part.
|
||||
/// Each part is parsed once per import and counted once per holder. Once [`MAX_TAG_BYTES`] is
|
||||
/// reached, no further tag parts are parsed or cached (#1164).
|
||||
/// reached, no further tag parts are parsed or cached.
|
||||
pub fn tags(imp: &mut Imp, part: &Part, holder: &El) -> Vec<(String, String)> {
|
||||
if imp.tags_capped {
|
||||
return vec![];
|
||||
@@ -388,7 +388,7 @@ pub fn import(bytes: &[u8], defaults: &dyn Defaults) -> Result<Presentation, Err
|
||||
}
|
||||
|
||||
/// [`import`], plus the parts of the slide list the file names but that couldn't be read (a
|
||||
/// missing or truncated slide): those slides are left out, so a caller can say so (#203).
|
||||
/// missing or truncated slide): those slides are left out, so a caller can say so.
|
||||
pub fn import_checked(bytes: &[u8], defaults: &dyn Defaults) -> Result<(Presentation, Vec<String>), Error> {
|
||||
import_with_chart_points(bytes, defaults, chart::MAX_PRESENTATION_CHART_POINTS)
|
||||
}
|
||||
|
||||
@@ -485,7 +485,7 @@ fn frame(imp: &mut Imp, part: &Part, ctx: &mut IdCtx, e: &El, depth: usize) -> S
|
||||
} else {
|
||||
uri.rsplit('/').next().unwrap_or("Object").to_string()
|
||||
};
|
||||
// Keep the parts it points to so a save writes it back whole (#203). A part with relationships
|
||||
// Keep the parts it points to so a save writes it back whole. A part with relationships
|
||||
// of its own, or an external link, can't be carried: the save then falls back to the preview.
|
||||
let parts = xmlx::rel_refs(e)
|
||||
.into_iter()
|
||||
|
||||
Reference in New Issue
Block a user