(T, newtarget, node, src_dict, type)
| 116 | |
| 117 | |
| 118 | def modify_textnode(T, newtarget, node, src_dict, type): |
| 119 | src = node.children[0].rawsource |
| 120 | return nodes.Text( |
| 121 | (typeify(basename(T), type) if '~' in src |
| 122 | else typeify(shorten(T, newtarget, src_dict), type)), |
| 123 | src, |
| 124 | ) |
| 125 | |
| 126 | |
| 127 | def maybe_resolve_abbreviations(app, env, node, contnode): |
no test coverage detected