You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/06/30 14:53:21 UTC

[lucene-jira-archive] 02/05: replace all \r\n to \n

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git

commit 4df4c4f2e7080f21b261454ffda549a4f90455b3
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 23:18:07 2022 +0900

    replace all \r\n to \n
---
 migration/src/jira_util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration/src/jira_util.py b/migration/src/jira_util.py
index 8cbc86b..16c91ea 100644
--- a/migration/src/jira_util.py
+++ b/migration/src/jira_util.py
@@ -169,6 +169,7 @@ def convert_text(text: str, att_replace_map: dict[str, str] = {}) -> str:
                 res = f"[{m.group(1)}]({repl})"
         return res
 
+    text = text.replace("\r\n", "\n")
     text = jira2markdown.convert(text)
 
     # markup @ mentions with ``