Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

section.__init__ doesn't set name correctly #18

Closed
juliaclement opened this issue Aug 19, 2022 · 2 comments
Closed

section.__init__ doesn't set name correctly #18

juliaclement opened this issue Aug 19, 2022 · 2 comments

Comments

@juliaclement
Copy link

When creating a new section using, for example, sectn=Section(style='sss', name='nnn') the section will be created with style & name both set to 'sss'.

The reason for this appears to be line 51 of section.py which reads 'self.name=style' instead of 'self.name=name'

Please forgive my not forking, patching & creating a pull request as I'm currently developing some software that writes .ODT files using the pip version of odfdo & don't want to risk confusing my environment

@jdum
Copy link
Owner

jdum commented Aug 20, 2022

Hi,
Thank you for the bug report. I agree with your proposed fix, I have uploaded a new release 3.3.2 (github and pypi) that solves the bug.

@juliaclement
Copy link
Author

Thank you for fixing this so promptly.

No surprise, but I can confirm that the change worked for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants