summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/unrest.pl
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2011-08-08 17:19:22 -0400
committerelliptic <hyperelliptical@gmail.com>2011-08-08 17:23:11 -0400
commit7f6c4120ef4bc8589d28413d811a11801c005b25 (patch)
tree3058e2378fdab494cee236c1f25d57769beea7b4 /crawl-ref/source/util/unrest.pl
parent931588bfb6064c4ba8e325714f87011dfa466b98 (diff)
downloadcrawl-ref-7f6c4120ef4bc8589d28413d811a11801c005b25.tar.gz
crawl-ref-7f6c4120ef4bc8589d28413d811a11801c005b25.zip
Make the reST-to-txt converter do something about notes.
I don't know how ".. note::" in reST should ideally be rendered in plaintext, but at least now the script replaces it by something.
Diffstat (limited to 'crawl-ref/source/util/unrest.pl')
-rwxr-xr-xcrawl-ref/source/util/unrest.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/util/unrest.pl b/crawl-ref/source/util/unrest.pl
index 3a6ae78e62..d36e8a00ae 100755
--- a/crawl-ref/source/util/unrest.pl
+++ b/crawl-ref/source/util/unrest.pl
@@ -9,6 +9,9 @@ s|:http: ``(.+)``|$1|g;
s|:telnet: ``(.+)``|telnet: $1|g;
s|:ssh: ``(.+)``|ssh: $1|g;
+# Notes.
+s/\.\. note::/Note: /g;
+
# Local references.
s/`(.)\.\s+(.*?)`_/$1. "$2"/sg; # added "" for a nicer look