gopher: change gopher-text to use split1.
parent
ee6ae8a63c
commit
c45e4e1c68
|
@ -81,8 +81,7 @@ M: gopher-link >url
|
||||||
] if >url ;
|
] if >url ;
|
||||||
|
|
||||||
: gopher-text ( object -- lines )
|
: gopher-text ( object -- lines )
|
||||||
utf8 decode string-lines
|
utf8 decode string-lines { "." } split1 drop ;
|
||||||
"." over index [ head ] when* ;
|
|
||||||
|
|
||||||
: gopher-gif ( object -- image )
|
: gopher-gif ( object -- image )
|
||||||
"gif" (image-class) load-image* ;
|
"gif" (image-class) load-image* ;
|
||||||
|
|
Loading…
Reference in New Issue