aboutsummaryrefslogtreecommitdiffstats
path: root/rst/src
diff options
context:
space:
mode:
Diffstat (limited to 'rst/src')
-rw-r--r--rst/src/main.rs3
1 files changed, 2 insertions, 1 deletions
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 {