Create unique anchor prefixes
(self)
| 1880 | % (id,linenum,text) |
| 1881 | |
| 1882 | def _make_prefix(self): |
| 1883 | """Create unique anchor prefixes""" |
| 1884 | |
| 1885 | # Generate a unique anchor prefix so multiple tables |
| 1886 | # can exist on the same HTML page without conflicts. |
| 1887 | fromprefix = "from%d_" % HtmlDiff._default_prefix |
| 1888 | toprefix = "to%d_" % HtmlDiff._default_prefix |
| 1889 | HtmlDiff._default_prefix += 1 |
| 1890 | # store prefixes so line format method has access |
| 1891 | self._prefix = [fromprefix,toprefix] |
| 1892 | |
| 1893 | def _convert_flags(self,fromlist,tolist,flaglist,context,numlines): |
| 1894 | """Makes list of "next" links""" |