<s> """<STR_LIT>""" <EOL> import urllib <EOL> from docutils import nodes , utils <EOL> def make_trac_link ( name , rawtext , text , lineno , inliner , <EOL> options = { } , content = [ ] ) : <EOL> env = inliner . document . settings . env <EOL> trac_url = env . config . traclinks_base_url <EOL> ref = trac_url + '<STR_LIT>' + urllib . quote ( text , safe = '<STR_LIT>' ) <EOL> node = nodes . reference ( rawtext , <EOL> utils . unescape ( text ) , <EOL> refuri = ref , <EOL> ** options ) <EOL> return [ node ] , [ ] <EOL> def setup ( app ) : <EOL> app . add_config_value ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> app . add_role ( '<STR_LIT>' , make_trac_link ) </s>
