]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: ceph-release-notes: escape asterisks not for inline emphasis 16199/head
authorKefu Chai <kchai@redhat.com>
Fri, 7 Jul 2017 03:48:50 +0000 (11:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 Jul 2017 06:28:12 +0000 (14:28 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/ceph-release-notes

index 69680bed24e494856ccd363fa74e6f22bf06ede9..6f0d70cf7f7f1f61570aed93ccc319e2da5e3b7f 100755 (executable)
@@ -196,6 +196,9 @@ def make_release_notes(gh, repo, ref, plaintext, verbose, strict, use_tags):
                 title = split_component(title, gh, number)
 
             title = title.strip(' \t\n\r\f\v\.\,\;\:\-\=')
+            # escape asterisks, which is used by reStructuredTextrst for inline
+            # emphasis
+            title = title.replace('*', '\*')
             pr2info[number] = (author, title, message)
 
             for issue in set(issues):