You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/08/20 19:45:37 UTC

[07/22] git commit: [#6464] Use plain2markdown to escape ticket description and comments in GC Issues importer

[#6464] Use plain2markdown to escape ticket description and comments in GC Issues importer

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/97102be4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/97102be4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/97102be4

Branch: refs/heads/cj/6464
Commit: 97102be4b28813efb9fbb521db35c91de2a32847
Parents: 851c962
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Thu Aug 8 20:44:54 2013 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Tue Aug 20 17:34:13 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/tracker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/97102be4/ForgeImporters/forgeimporters/google/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/tracker.py b/ForgeImporters/forgeimporters/google/tracker.py
index 297f65a..a997429 100644
--- a/ForgeImporters/forgeimporters/google/tracker.py
+++ b/ForgeImporters/forgeimporters/google/tracker.py
@@ -80,7 +80,7 @@ class GoogleCodeTrackerImporter(ToolImporter):
                 '{body}').format(
                     creator=issue.get_issue_creator(),
                     owner=issue.get_issue_owner(),
-                    body=issue.get_issue_description(),
+                    body=h.plain2markdown(issue.get_issue_description(), True),
                 )
         ticket.add_multiple_attachments(issue.get_issue_attachments())
 
@@ -108,7 +108,7 @@ class GoogleCodeTrackerImporter(ToolImporter):
                         '\n'
                         '{updates}').format(
                             author=comment.author,
-                            body=comment.body,
+                            body=h.plain2markdown(comment.body, True),
                             updates='\n'.join(
                                 '**%s** %s' % (k,v)
                                 for k,v in comment.updates.items()