mirror of
https://github.com/sharkdp/bat.git
synced 2025-06-22 16:25:58 +01:00
Fix broken resolv.conf highlighting
closes #1510 The change in `create_highlighted_versions.py` fixes a "unknown theme "'1337'" warning. The single quotes were wrong. `bat` was always falling back to the default theme, so let's use that for now.
This commit is contained in:
src
tests/syntax-tests
@ -12,7 +12,7 @@ BAT_OPTIONS = [
|
||||
"--no-config",
|
||||
"--style=plain",
|
||||
"--color=always",
|
||||
"--theme='1337'",
|
||||
"--theme=default",
|
||||
"--italic-text=always",
|
||||
]
|
||||
|
||||
@ -41,7 +41,9 @@ def create_highlighted_versions(output_basepath):
|
||||
root = os.path.dirname(os.path.abspath(__file__))
|
||||
sources = path.join(root, "source", "*")
|
||||
|
||||
for source in glob.glob(path.join(sources, "*")) + glob.glob(path.join(sources, ".*")):
|
||||
for source in glob.glob(path.join(sources, "*")) + glob.glob(
|
||||
path.join(sources, ".*")
|
||||
):
|
||||
try:
|
||||
env = os.environ.copy()
|
||||
env.pop("PAGER", None)
|
||||
|
Reference in New Issue
Block a user