xmode.code2html fix
parent
bb45b6702b
commit
6bc8995106
|
@ -16,9 +16,7 @@ IN: xmode.code2html
|
||||||
tokenize-line htmlize-tokens ;
|
tokenize-line htmlize-tokens ;
|
||||||
|
|
||||||
: htmlize-lines ( lines mode -- )
|
: htmlize-lines ( lines mode -- )
|
||||||
<pre>
|
f swap load-mode [ htmlize-line nl ] curry reduce drop ;
|
||||||
f swap load-mode [ htmlize-line nl ] curry reduce drop
|
|
||||||
</pre> ;
|
|
||||||
|
|
||||||
: default-stylesheet ( -- )
|
: default-stylesheet ( -- )
|
||||||
<style>
|
<style>
|
||||||
|
@ -34,9 +32,11 @@ IN: xmode.code2html
|
||||||
<title> dup write </title>
|
<title> dup write </title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
over empty?
|
<pre>
|
||||||
[ 2drop ]
|
over empty?
|
||||||
[ over first find-mode htmlize-lines ] if
|
[ 2drop ]
|
||||||
|
[ over first find-mode htmlize-lines ] if
|
||||||
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
</html> ;
|
</html> ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue