]> ruin.nu Git - ndwebbie.git/commitdiff
Make size bbcode tag use percent instead of arbitrary scale
authorMichael Andreen <harv@ruin.nu>
Sun, 5 Apr 2009 19:17:39 +0000 (21:17 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 21 Jun 2009 20:24:51 +0000 (22:24 +0200)
lib/NDWeb/Include.pm

index 8105dad2f89c54bbfaab521b540410fe83c8945b..b092122dba84be1d849797ad7f51b8db6bdbbab1 100644 (file)
@@ -56,6 +56,8 @@ my $bbc = Parse::BBCode->new({
                        code => 'block:<div class="bbcode-quote"><pre class="bbcode-code">%{html}s</pre></div>',
                        img   => 'url:<a href="%{link}A" rel="external">%s</a>',
                        li  => 'block:<li>%{parse}s</li>',
+                       size  => '<span style="font-size: %{num}a%">%s</span>',
+
                },
                close_open_tags   => 1,
        });