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/16 04:07:37 UTC
[12/18] 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/ceb70671
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ceb70671
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ceb70671
Branch: refs/heads/cj/6464
Commit: ceb706711720eb295e464ecb1ce58290720e0fff
Parents: e64d677
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Thu Aug 8 20:44:54 2013 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Fri Aug 16 00:52:14 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/ceb70671/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()