(line)
| 1756 | characters will be replaced with a nonbreakable space. |
| 1757 | """ |
| 1758 | def expand_tabs(line): |
| 1759 | # hide real spaces |
| 1760 | line = line.replace(' ','\0') |
| 1761 | # expand tabs into spaces |
| 1762 | line = line.expandtabs(self._tabsize) |
| 1763 | # replace spaces from expanded tabs back into tab characters |
| 1764 | # (we'll replace them with markup after we do differencing) |
| 1765 | line = line.replace(' ','\t') |
| 1766 | return line.replace('\0',' ').rstrip('\n') |
| 1767 | fromlines = [expand_tabs(line) for line in fromlines] |
| 1768 | tolines = [expand_tabs(line) for line in tolines] |
| 1769 | return fromlines,tolines |
nothing calls this directly
no test coverage detected