ó
j4Vdc           @@ so   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d Z d	 e f d
     YZ	 d   Z
 d S(   uĦ  
NL2BR Extension
===============

A Python-Markdown extension to treat newlines as hard breaks; like
GitHub-flavored Markdown does.

See <https://pythonhosted.org/Markdown/extensions/nl2br.html>
for documentation.

Oringinal code Copyright 2011 [Brian Neal](http://deathofagremmie.com/)

All changes Copyright 2011-2014 The Python Markdown Project

License: [BSD](http://www.opensource.org/licenses/bsd-license.php)

i    (   t   absolute_import(   t   unicode_literalsi   (   t	   Extensioni   (   t   SubstituteTagPatternu   \nt   Nl2BrExtensionc           B@ s   e  Z d    Z RS(   c         C@ s)   t  t d  } | j j d | d  d  S(   Nu   bru   nlu   _end(   R   t   BR_REt   inlinePatternst   add(   t   selft   mdt
   md_globalst   br_tag(    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/markdown/extensions/nl2br.pyt   extendMarkdown   s    (   t   __name__t
   __module__R   (    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/markdown/extensions/nl2br.pyR      s   c          O@ s   t  |  |   S(   N(   R   (   t   argst   kwargs(    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/markdown/extensions/nl2br.pyt   makeExtension"   s    N(   t   __doc__t
   __future__R    R   t    R   t   inlinepatternsR   R   R   R   (    (    (    sg   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/markdown/extensions/nl2br.pyt   <module>   s   