]> zdv2.bktei.com Git - BK-2020-03.git/commitdiff
feat(user/mw_sc2sp.sh):Add End of Page tag to output
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Thu, 23 Oct 2025 04:30:44 +0000 (04:30 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Thu, 23 Oct 2025 04:30:44 +0000 (04:30 +0000)
user/mw_wc2sp.sh

index 4ffdd884672f91677d34245f94c2ed46dd3a6d8a..cfb6444c6bec8c41480bd4485511499bf1ff0c61 100755 (executable)
@@ -4,7 +4,7 @@
 # Input:  arg1  path  input wikicode file
 # Output: files       wikicode file tree
 # Depends: Bash 5.1.16, GNU Coreutils 8.32
 # Input:  arg1  path  input wikicode file
 # Output: files       wikicode file tree
 # Depends: Bash 5.1.16, GNU Coreutils 8.32
-# Version: 0.2.0
+# Version: 0.3.0
 
 re_sp='^(<!-- @subpage:)(.*)([ ]*-->)$'; # subpage marker pattern
 d_out=./wikicode/; # default output dir
 
 re_sp='^(<!-- @subpage:)(.*)([ ]*-->)$'; # subpage marker pattern
 d_out=./wikicode/; # default output dir
@@ -234,6 +234,7 @@ print_wc_footer() {
     printf -- "\n==References==\n<references />\n"
     printf -- "\n==Footnotes==\n<references group=fn />\n";
     printf -- "\n==Comments==\n<references group=cmt />\n";
     printf -- "\n==References==\n<references />\n"
     printf -- "\n==Footnotes==\n<references group=fn />\n";
     printf -- "\n==Comments==\n<references group=cmt />\n";
+    printf -- "\n<!-- End of Page -->\n";
     printf -- "\n";
 }; # print wikicode footer
 create_output_wikicode() {
     printf -- "\n";
 }; # print wikicode footer
 create_output_wikicode() {