Also, put <code> blocks around fundamentals.
return self.format_xref(type_)
def _process_fundamental(self, node, match, props):
- return self.fundamentals.get(props['fundamental'], match)
+ fundamental = props['fundamental']
+ try:
+ return '<code>%s</code>' % (self.fundamentals[fundamental],)
+ except KeyError:
+ return match
def _process_parameter(self, node, match, props):
try:
</tr>
<tr>
<td><p>boolean_arg :</p></td>
-<td><p>You should always pass TRUE.</p></td>
+<td><p>You should always pass <code>TRUE</code>.</p></td>
</tr>
<tr>
<td><p>pointer_arg :</p></td>
-<td><p>If not NULL, do a thing. Pass <code>first_arg</code> if you want to sometimes. You can also pass <code>second_arg</code>, or even <code>boolean_arg</code>.</p></td>
+<td><p>If not <code>NULL</code>, do a thing. Pass <code>first_arg</code> if you want to sometimes. You can also pass <code>second_arg</code>, or even <code>boolean_arg</code>.</p></td>
</tr>
<tr>
<td><p>string :</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
-<td><p>Either FALSE or something FALSE-y.</p></td>
+<td><p>Either <code>FALSE</code> or something <code>FALSE</code>-y.</p></td>
</tr>
</table>
<p>Since 0.99</p>
<table>
<tr>
<td><p>out_arg :</p></td>
-<td><p>a pointer to int, or NULL to ignore</p></td>
+<td><p>a pointer to int, or <code>NULL</code> to ignore</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
-<td><p>TRUE if <code>out_arg</code> is valid, FALSE otherwise</p></td>
+<td><p><code>TRUE</code> if <code>out_arg</code> is valid, <code>FALSE</code> otherwise</p></td>
</tr>
</table>
</page>
</tr>
<tr>
<td><p>boolean_arg :</p></td>
-<td><p>You should always pass True.</p></td>
+<td><p>You should always pass <code>True</code>.</p></td>
</tr>
<tr>
<td><p>pointer_arg :</p></td>
-<td><p>If not None, do a thing. Pass <code>self</code> if you want to sometimes. You can also pass <code>second_arg</code>, or even <code>boolean_arg</code>.</p></td>
+<td><p>If not <code>None</code>, do a thing. Pass <code>self</code> if you want to sometimes. You can also pass <code>second_arg</code>, or even <code>boolean_arg</code>.</p></td>
</tr>
<tr>
<td><p>string :</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
-<td><p>Either False or something False-y.</p></td>
+<td><p>Either <code>False</code> or something <code>False</code>-y.</p></td>
</tr>
</table>
<p>Since 0.99</p>
<table>
<tr>
<td><p>out_arg :</p></td>
-<td><p>a pointer to int, or None to ignore</p></td>
+<td><p>a pointer to int, or <code>None</code> to ignore</p></td>
</tr>
<tr>
<td><p>Returns :</p></td>
-<td><p>True if <code>out_arg</code> is valid, False otherwise</p></td>
+<td><p><code>True</code> if <code>out_arg</code> is valid, <code>False</code> otherwise</p></td>
</tr>
</table>
</page>