summaryrefslogtreecommitdiffstats
path: root/scripts/MarkdownBook/Document/Txt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/MarkdownBook/Document/Txt.pm')
-rw-r--r--scripts/MarkdownBook/Document/Txt.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/MarkdownBook/Document/Txt.pm b/scripts/MarkdownBook/Document/Txt.pm
index e03a1bb..6c7f038 100644
--- a/scripts/MarkdownBook/Document/Txt.pm
+++ b/scripts/MarkdownBook/Document/Txt.pm
@@ -30,9 +30,11 @@ sub output
open($out_fh, '>',
$self->{'book'}->dir() . '/' . $self->{'file'} . '.txt');
+ # Print document title.
print($out_fh $self->{'title'} . "\n" .
'*' x length($self->{'title'}) . "\n\n\n");
+ # Print document text with macro substitutions.
print($out_fh $self->{'book'}->subst_macros($self->{'source_text'}));
close($out_fh);