Skip to content

Commit

Permalink
fix formatter new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Aug 4, 2024
1 parent b88b34c commit ddf0c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3_chunk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if [ -n "$FORMATTERS" ]; then
if [ -z "$form" ]; then
continue
fi
ARG_ARR+=("--formatter" "$(echo $form)")
ARG_ARR+=("--formatter" "$form")
done
unset IFS
fi
Expand Down
4 changes: 2 additions & 2 deletions src/rechunk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from rich.logging import RichHandler, get_console
from rich.traceback import install
from .utils import tqdm

from .alg import main as alg_main
import argparse

Expand Down Expand Up @@ -141,7 +140,8 @@ def argparse_func():
if "=" not in line:
continue
idx = line.index("=")
formatters[line[:idx]] = line[idx + 1 :]
# FIXME: dirty hack to undo escapes
formatters[line[:idx]] = line[idx + 1 :].encode('utf-8').decode('unicode_escape')

alg_main(
repo=args.repo,
Expand Down

0 comments on commit ddf0c6c

Please sign in to comment.