Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use format
  • Loading branch information
cho45 committed Jul 21, 2011
1 parent bef7c1f commit cbc02c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Text/Xatena/Node/SuperPre.pm
Expand Up @@ -28,7 +28,8 @@ sub lang { $_[0]->{lang} }

sub as_html {
my ($self, %opts) = @_;
sprintf("<pre class=\"$SUPERPRE_CLASS_NAME%s\">%s</pre>",
sprintf("<pre class=\"%s%s\">%s</pre>",
$SUPERPRE_CLASS_NAME,
$self->lang ? " lang-" . $self->lang : "",
escape_html(join "", @{ $self->children })
);
Expand Down

0 comments on commit cbc02c1

Please sign in to comment.