SantosSi
Repos
6
Followers
4

Events

opened issue
po2md -w 0 triggers TypeError: argument 'width': 'float' object cannot be interpreted as an integer

Installed on Debian Bookworm through pipx install mdpo using python 3.11. po2md -q --wrapwidth 0 --po-encoding UTF-8 -p translated.po -s output.md input.md (FYI: same for --wrapwidth INF / -w 0 / -w INF)

Traceback (most recent call last): File "/home/user/.local/bin/po2md", line 8, in sys.exit(main()) ^^^^^^ File "/home/user/.local/pipx/venvs/mdpo/lib/python3.11/site-packages/mdpo/po2md/main.py", line 139, in main raise SystemExit(run(args=sys.argv[1:])[1]) # pragma: no cover ^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/pipx/venvs/mdpo/lib/python3.11/site-packages/mdpo/po2md/main.py", line 122, in run output = po2md.translate( ^^^^^^^^^^^^^^^^ File "/home/user/.local/pipx/venvs/mdpo/lib/python3.11/site-packages/mdpo/po2md/init.py", line 964, in translate parser.parse( File "/home/user/.local/pipx/venvs/mdpo/lib/python3.11/site-packages/mdpo/po2md/init.py", line 623, in leave_block self._save_current_msgid() File "/home/user/.local/pipx/venvs/mdpo/lib/python3.11/site-packages/mdpo/po2md/init.py", line 427, in _save_current_msgid translation = md_ulb_pwrap.ulb_wrap_paragraph( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument 'width': 'float' object cannot be interpreted as an integer

Does not happen when dropping the -w option at all or using other numbers, e.g. 78, 80 or 32000.

Created at 1 month ago
issue comment
Make script updateable without having to care for the variables to keep it running

This is about a way to improve the script's support process.

Well, your suggestion matches what came to my mind as a solution. If you don't want to implement the solution you described: Not sure if I have the rights to push such changes to your project, so I started with the issue as a first step.

Created at 1 month ago
issue comment
Make script updateable without having to care for the variables to keep it running

It might make sense to carve the parameter definition out into a file of its own (with a template shipped), so that the code can be updated without having to adapt hard-coded script parameters to the own conditions over and over.

Created at 1 month ago
opened issue
Incompatible with parameter: --pool images

The parameter --pool images causes it to not run on my setup. After removing it is fine for me.

Created at 1 month ago
opened issue
Make script updateable without having to care for the variables to keep it running

Separating code from configuration makes sense in this case.

Created at 1 month ago