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

[10/14] git commit: [#6480] Initialize classes to prevent exc if no href

[#6480] Initialize classes to prevent exc if no href

Signed-off-by: Tim Van Steenburgh <tv...@gmail.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/aad08cf4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/aad08cf4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/aad08cf4

Branch: refs/heads/tv/6480
Commit: aad08cf4a73a064d90e995c18aa96b46e442100b
Parents: 179ed21
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Tue Aug 6 19:23:16 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Wed Aug 7 12:36:15 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/markdown_extensions.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/aad08cf4/Allura/allura/lib/markdown_extensions.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/markdown_extensions.py b/Allura/allura/lib/markdown_extensions.py
index 4879bf4..6e1004d 100644
--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -99,6 +99,7 @@ class ForgeLinkPattern(markdown.inlinepatterns.LinkPattern):
         except IndexError:
             title = None
 
+        classes = ''
         if href:
             if href == 'TOC':
                 return '[TOC]'  # skip TOC