Skip to content

script for migrating news from wml to hugo breaks long links (line wrap)

Hello, I have tested the script for migrating news from wml to hugo: https://salsa.debian.org/Deaththekidd/debianhugo/-/blob/main/scripts/news/copy-news-from-webwml.py

with this commandline:

python3 scripts/news/copy-news-from-webwml.py --news-file-name 20250906

The result is very good but there is some line-wrapping that breaks the markdown links in some cases, for example if you run the above command and then you see the result in content/en/news/2025/20250906.md:

[ debian-installer-netboot-images ](https://packages.debian.org/src:debian-``

installer-netboot-images)

So when the page is built, those lines are not well rendered.

I am not sure about which line of the script is the one we should change to fix this, and it's not high priority at all, but I register the issue so other people know, and, if we have time, we try to fix it before we perform a massive migration.

Kind regards