MCPcopy Create free account
hub / github.com/aws/aws-cli / start_a

Method start_a

awscli/bcdoc/style.py:205–217  ·  view source on GitHub ↗
(self, attrs=None)

Source from the content-addressed store, hash-verified

203 self.new_paragraph()
204
205 def start_a(self, attrs=None):
206 if attrs:
207 for attr_key, attr_value in attrs:
208 if attr_key == 'href':
209 self.a_href = attr_value
210 self.doc.write('`')
211 else:
212 # There are some model documentation that
213 # looks like this: <a>DescribeInstances</a>.
214 # In this case we just write out an empty
215 # string.
216 self.doc.write(' ')
217 self.doc.do_translation = True
218
219 def link_target_definition(self, refname, link):
220 self.doc.writeln('.. _%s: %s' % (refname, link))

Callers 6

test_href_linkMethod · 0.95
test_escape_href_linkMethod · 0.95
test_href_linkMethod · 0.95
test_escape_href_linkMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by 6

test_href_linkMethod · 0.76
test_escape_href_linkMethod · 0.76
test_href_linkMethod · 0.76
test_escape_href_linkMethod · 0.76