| 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)) |