mozilla / jira-bugzilla-integration

Jira Bugzilla Integration (JBI) - system to sync bugs and issues
Mozilla Public License 2.0
8 stars 22 forks source link

Follow-up #839: Improve truncating of description and comments #853

Open leplatrem opened 6 months ago

leplatrem commented 6 months ago

See https://github.com/mozilla/jira-bugzilla-integration/pull/839#discussion_r1487973839

Currently we truncate on space, which could lead to invalid syntax:

>>> markdown_to_jira("The line is [too long|https://www.example.com]", max_length=20)
"This line is [too"