Skip to content

Keys in headers are not replaced #4

Closed

Description

@sidkdbl07

I placed a key (e.g., ${Title} ) both in the body of the document an in the header. The instance in the body of the document was replaced, but the instance of the header was not.

Activity

  1. ivanbicalho commented on Nov 19, 2022

    @ivanbicalho
    Owner

    You are right, there was a bug because the program wasn't getting the header/footer paragraphs. It's now solved in the version 0.4.1, by including the following code:

    for section in doc.sections:
        for paragraph in section.header.paragraphs:
            paragraphs.append(paragraph)
        for paragraph in section.footer.paragraphs:
            paragraphs.append(paragraph)

    Can you check if it's ok? If so, we can close this, thanks!

  2. ivanbicalho commented on Nov 27, 2022

    @ivanbicalho
    Owner

    Fixed in version 0.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions