summaryrefslogtreecommitdiff
path: root/lib/VNDBUtil.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-12-22 12:06:55 +0100
committerYorhel <git@yorhel.nl>2014-12-22 12:06:55 +0100
commitb646361f63e066c6859a1f05e29af7d9c812a13a (patch)
tree89e848a66ad36c710a0ec5d0f3f9a9330d7c0368 /lib/VNDBUtil.pm
parent12338003bde24a3a263abe8caca71b1836ecee83 (diff)
DB: Merge name/title fetching in main fetching functions
And call bbSubstLinks() from Handler::Discussions rather than DB::Discussions - it's not a transformation that the DB layer should do, IMO.
Diffstat (limited to 'lib/VNDBUtil.pm')
-rw-r--r--lib/VNDBUtil.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm
index e81971a6..0c3d5eb3 100644
--- a/lib/VNDBUtil.pm
+++ b/lib/VNDBUtil.pm
@@ -27,6 +27,9 @@ sub shorten {
# [code] .. [/code]
# v+, v+.+
# http://../
+# XXX: Make sure to sync any changes in the formating with
+# VNDB::Util::Misc::bbSubstLinks() if necessary. Or, alternatively, abstract
+# parsing into a separate function as per http://beta.vndb.org/t5564.12
sub bb2html {
my($raw, $maxlength, $charspoil) = @_;
$raw =~ s/\r//g;