Create unique anchor prefixes
(self)
| 1935 | + f'<td{css_class}nowrap="nowrap">{text}</td>' |
| 1936 | |
| 1937 | def _make_prefix(self): |
| 1938 | """Create unique anchor prefixes""" |
| 1939 | |
| 1940 | # Generate a unique anchor prefix so multiple tables |
| 1941 | # can exist on the same HTML page without conflicts. |
| 1942 | fromprefix = "from%d_" % HtmlDiff._default_prefix |
| 1943 | toprefix = "to%d_" % HtmlDiff._default_prefix |
| 1944 | HtmlDiff._default_prefix += 1 |
| 1945 | # store prefixes so line format method has access |
| 1946 | self._prefix = [fromprefix,toprefix] |
| 1947 | |
| 1948 | def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): |
| 1949 | """Makes list of "next" links""" |