mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-19 09:37:24 +02:00
WebPaste: no longer split long lines
This commit is contained in:
parent
49b926c372
commit
bda93505f3
@ -48,7 +48,7 @@ sub paste($self, $text, %opts) {
|
|||||||
%opts = (%default_opts, %opts);
|
%opts = (%default_opts, %opts);
|
||||||
|
|
||||||
# word-wrap text unless no_split is set
|
# word-wrap text unless no_split is set
|
||||||
$text =~ s/(.{150})\s/$1\n/g unless $opts{no_split};
|
# $text =~ s/(.{150})\s/$1\n/g unless $opts{no_split};
|
||||||
|
|
||||||
# encode paste to utf8
|
# encode paste to utf8
|
||||||
$text = encode('UTF-8', $text);
|
$text = encode('UTF-8', $text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user