From 89d123ec6586b9d0e48c2f99f11575b254b46e72 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Sat, 31 Oct 2020 16:04:19 +0100 Subject: do the evil thing --- rst/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rst/src') diff --git a/rst/src/main.rs b/rst/src/main.rs index 3c0b8e5..318bcb6 100644 --- a/rst/src/main.rs +++ b/rst/src/main.rs @@ -35,7 +35,8 @@ fn main() -> CliResult { let args = Cli::from_args(); args.verbosity.setup_env_logger("rst")?; - let content = read_file(args.file)?; + // TODO: somehow make it work without replacing tabs + let content = read_file(args.file)?.replace('\t', " ".repeat(8).as_ref()); let document = parse(&content)?; let stdout = std::io::stdout(); match args.format { -- cgit v1.2.3