1Tc@s@dZddlmZddlmZdefdYZdS(s sphinx.writers.websupport ~~~~~~~~~~~~~~~~~~~~~~~~~ sphinx.websupport writer that adds comment-related annotations. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. i(tHTMLTranslator(tis_commentabletWebSupportTranslatorcBs2eZdZdZdZdZdZRS(s% Our custom HTML translator. cOs#tj||||d|_dS(Nssphinx-has-comment(Rt__init__t comment_class(tselftbuildertargstkwargs((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyRscCs?t|r+t|dr+|j|ntj||dS(Ntuid(Rthasattrthandle_visit_commentableRtdispatch_visit(Rtnode((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyR scCsn|j||jdr<|jjd|jddnd|jg|jd<|jdj|jdS(Ntidssiss%stclasses(t add_db_nodet attributestbodytappendR R(RR ((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyR s    cCsY|jj}|j|jsU|jd|jd|jjd|jpN|jndS(Ntidtdocumenttsource(Rtstoragethas_nodeR tadd_nodetcurrent_docnamet rawsourcetastext(RR R((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyR)s   (t__name__t __module__t__doc__RR R R(((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyRs    N(Rtsphinx.writers.htmlRtsphinx.util.websupportRR(((sC/usr/local/lib/python2.7/site-packages/sphinx/writers/websupport.pyt s