From e9c8a59d49b52e07c8c19357e5d7b2961879677d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 15 Apr 2025 07:57:26 -0300 Subject: src/adoc: Rewrite as a pipeline with cat(1) at the start --- src/adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/adoc b/src/adoc index b52dd60..bb47807 100755 --- a/src/adoc +++ b/src/adoc @@ -43,7 +43,7 @@ plaintext_links() { file = BASE "." count++ ".txt" print "[role=plaintext]" print "link:" file "[plaintext]" - }' "$1" + }' } runtidy() { @@ -64,4 +64,7 @@ indent_4_blocks() { tail -n +5 } -plaintext_links "$FILENAME" | asciidoctor -s - | indent_4_blocks +cat "$FILENAME" | + plaintext_links | + asciidoctor -s - | + indent_4_blocks -- cgit v1.2.3