summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/FAQ2html.pl
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-03-01 00:41:23 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-03-01 01:52:29 +0100
commit5902f45a1b3a5836b3e95ec5b74ab04a328f90c9 (patch)
treed38ccaef726d9037dab86aa1dfe5cfb31fd824a5 /crawl-ref/source/util/FAQ2html.pl
parent292af13e3901223fb695db840abb5ca763d1599d (diff)
downloadcrawl-ref-5902f45a1b3a5836b3e95ec5b74ab04a328f90c9.tar.gz
crawl-ref-5902f45a1b3a5836b3e95ec5b74ab04a328f90c9.zip
Some more FAQ tweaks, use italics for mentioned txt files in the html.
Diffstat (limited to 'crawl-ref/source/util/FAQ2html.pl')
-rw-r--r--crawl-ref/source/util/FAQ2html.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/util/FAQ2html.pl b/crawl-ref/source/util/FAQ2html.pl
index ed654bdd54..07012d6cf9 100644
--- a/crawl-ref/source/util/FAQ2html.pl
+++ b/crawl-ref/source/util/FAQ2html.pl
@@ -146,6 +146,15 @@ while (my $line = <FILE>)
$line = "$a<i>$b</i>$c";
}
+ # Also use italics for mentioned txt/png files.
+ if ($line =~ /^(.*\s)?([^\s]+\.(txt|png))(.*)$/)
+ {
+ my $a = $1 || "";
+ my $b = $2;
+ my $c = $4;
+ $line = "$a<i>$b</i>$c";
+ }
+
# Specialcase the '&' symbol.
if ($line =~ /^(.*)&(.*)$/)
{