Changeset 635

Show
Ignore:
Timestamp:
04/09/06 22:51:47 (3 years ago)
Author:
athomas
Message:

AddCommentMacro:

  • Unescape comment body, fixes #188
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • addcommentmacro/0.9/AddComment.py

    r303 r635  
    66from trac.wiki.formatter import wiki_to_html 
    77from trac.wiki.model import WikiPage 
     8from trac.util import Markup 
    89from trac.util import TracError 
    910from trac.web.chrome import add_link 
     
    3536    disabled = '' 
    3637 
    37     comment = hdf.getValue("args.addcomment", "") 
     38    comment = Markup(hdf.getValue("args.addcomment", "")).unescape() 
     39    env.log.debug(comment) 
    3840    preview = hdf.getValue("args.previewaddcomment", "") 
    3941    cancel = hdf.getValue("args.canceladdcomment", "")