Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/g/r/gramps-3.4.2/src/plugins/docgen/ODFDoc.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.plug.docgen import (BaseDoc, TextDoc, DrawDoc, graphicstyle,
                    FONT_SANS_SERIF, SOLID, PAPER_PORTRAIT,
                    INDEX_TYPE_TOC, PARA_ALIGN_CENTER, PARA_ALIGN_LEFT, 
 
        if links == True:
            markuptext = re.sub(URL_PATTERN, _CLICKABLE, markuptext)
 
        # we need to know if we have new styles to add.
 
        if links == True:
            text = re.sub(URL_PATTERN, _CLICKABLE, text)
 
        if mark:

src/g/r/gramps-3.4.2/src/plugins/docgen/RTFDoc.py   Gramps(Download)
#
#------------------------------------------------------------------------
from gen.plug.docgen import (BaseDoc, TextDoc, FONT_SERIF, PARA_ALIGN_RIGHT,
                             PARA_ALIGN_CENTER, PARA_ALIGN_JUSTIFY,
                             URL_PATTERN)
        if links ==  True:
            import re
            self.text = re.sub(URL_PATTERN, _CLICKABLE, self.text)
        LOG.debug("write_text, exit: opened: %d saved text: %s" % 
                  (self.opened, 

src/g/r/gramps-3.4.2/src/plugins/docgen/LaTeXDoc.py   Gramps(Download)
#
#------------------------------------------------------------------------
from gen.plug.docgen import BaseDoc, TextDoc, PAPER_LANDSCAPE, FONT_SANS_SERIF, URL_PATTERN
from gen.plug.docbackend import DocBackend
import Image
 
        if links == True:
            text = re.sub(URL_PATTERN, _CLICKABLE, text)
 
        #hard coded replace of the underline used for missing names/data
 
        if links == True:
            markuptext = re.sub(URL_PATTERN, _CLICKABLE, markuptext)
        markuptext = self._backend.add_markup_from_styled(text, s_tags)
 

src/g/r/gramps-3.4.2/src/plugins/docgen/HtmlDoc.py   Gramps(Download)
import ImgManip
import const
from gen.plug.docgen import BaseDoc, TextDoc, FONT_SANS_SERIF, URL_PATTERN
from libhtmlbackend import HtmlBackend, process_spaces
from libhtml import Html
        if links == True:
            import re
            text = re.sub(URL_PATTERN, _CLICKABLE, text)
        self.htmllist[-1] += text