Skip to content

bullet: {type: "bullet"} results in no bullet #1432

@gormster

Description

@gormster

PptxGenJS/src/gen-xml.ts

Lines 890 to 891 in 3c9ec1b

if (textObj.options.bullet.type) {
if (textObj.options.bullet.type.toString().toLowerCase() === 'number') {

These two lines should be a single if condition. At the moment, the first condition checks if the type field is present, so if it's set, the entire rest of the if/else tree is skipped. However, it only actually does anything if it's set to "number". Setting type to "bullet" means the entire if/else tree is skipped and nothing is outputted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions