From 204dae921abff0c70e017215bb3c91fa6ca11aff Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 26 Dec 2016 11:44:14 -0800 Subject: 3710 Turns out we don't need to explicitly add anchors for each line. Vim's TOhtml has magic for that out of the box. --- html/http-client.mu.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'html/http-client.mu.html') diff --git a/html/http-client.mu.html b/html/http-client.mu.html index cd8e1e91..687790fa 100644 --- a/html/http-client.mu.html +++ b/html/http-client.mu.html @@ -54,27 +54,27 @@ if ('onhashchange' in window) {
- 1 # example program: reading a URL over HTTP
- 2 
- 3 def main [
- 4   local-scope
- 5   google:&:source:char <- start-reading-from-network 0/real-resources, [google.com/]
- 6   n:num <- copy 0
- 7   buf:&:buffer <- new-buffer 30
- 8   {
- 9     c:char, done?:bool <- read google
-10     break-if done?
-11     n <- add n, 1
-12     buf <- append buf, c
-13     loop
-14   }
-15   result:text <- buffer-to-array buf
-16   open-console
-17   len:num <- length *result
-18   print 0/real-screen, result
-19   wait-for-some-interaction
-20   close-console
-21 ]
+ 1 # example program: reading a URL over HTTP
+ 2 
+ 3 def main [
+ 4   local-scope
+ 5   google:&:source:char <- start-reading-from-network 0/real-resources, [google.com/]
+ 6   n:num <- copy 0
+ 7   buf:&:buffer <- new-buffer 30
+ 8   {
+ 9     c:char, done?:bool <- read google
+10     break-if done?
+11     n <- add n, 1
+12     buf <- append buf, c
+13     loop
+14   }
+15   result:text <- buffer-to-array buf
+16   open-console
+17   len:num <- length *result
+18   print 0/real-screen, result
+19   wait-for-some-interaction
+20   close-console
+21 ]
 
-- cgit 1.4.1-2-gfad0