diff options
| author | arcadia-devtools <[email protected]> | 2022-06-09 14:39:19 +0300 |
|---|---|---|
| committer | arcadia-devtools <[email protected]> | 2022-06-09 14:39:19 +0300 |
| commit | c04b663c7bb4b750deeb8f48f620497ec13da8fa (patch) | |
| tree | 151ebc8bfdd2ad918caf5e6e2d8013e14272ddf8 /contrib/python/Pygments/py3/pygments/formatters/groff.py | |
| parent | 0d55ca22c507d18c2f35718687e0b06d9915397b (diff) | |
intermediate changes
ref:2d4f292087954c9344efdabb7b2a67f466263c65
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/formatters/groff.py')
| -rw-r--r-- | contrib/python/Pygments/py3/pygments/formatters/groff.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/Pygments/py3/pygments/formatters/groff.py b/contrib/python/Pygments/py3/pygments/formatters/groff.py index 5aafe6d2f20..7d409baa368 100644 --- a/contrib/python/Pygments/py3/pygments/formatters/groff.py +++ b/contrib/python/Pygments/py3/pygments/formatters/groff.py @@ -4,7 +4,7 @@ Formatter for groff output. - :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -144,6 +144,8 @@ class GroffFormatter(Formatter): self._write_lineno(outfile) for ttype, value in tokensource: + while ttype not in self.styles: + ttype = ttype.parent start, end = self.styles[ttype] for line in value.splitlines(True): |
