Skip to content

Escaped double quotes can screw with the squigly bracket count #2

@jfriedly

Description

@jfriedly

If a printf statement contains escaped double quote characters, then the squigly bracket count (used for indenting) can be thrown off. It works fine if there's no squigly brackets after the escaped quotes, though

EXAMPLE:
printf("She said, "I sent him an unhappy emoticon :{"");

YIELDS
printf("She said, "I sent him an unhappy emoticon :{"");
fprintf(outfile, "She said, "I sent him an unhappy emoticon :{"");

But the squigly counter will get incremented by one and cause extra indenting for on future fprintf insertions.

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