summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2025-01-08 10:49:48 +1100
committerYour Name <you@example.com>2025-01-08 10:49:48 +1100
commit4b7e651bf64b641583a45c122798212931902ef4 (patch)
treea6fa5bcdee9e56639bba4406ab7a10a4681d0bb1
parent960f00d0e57ad56c941809bc0fba2cbda0f051f2 (diff)
Fixed bug w/ reading only 1 doc. var.HEADmaster
-rwxr-xr-xds-static4
1 files changed, 2 insertions, 2 deletions
diff --git a/ds-static b/ds-static
index 1b10e8a..9a55236 100755
--- a/ds-static
+++ b/ds-static
@@ -64,7 +64,7 @@ proc document-variables {filename} {
## Retrieve text.
set fd [open $filename]
- variable text [gets $fd]
+ variable text [read $fd]
close $fd
## The generated variables.
@@ -112,7 +112,7 @@ proc document-variables {filename} {
proc process-tags {base_template content variables} {
## Get basic template and content.
-
+
set content [string map \
[list <!--CORE/CONTENT--> $content] \
[dict get $::templates $base_template]]