muffinista / gopher2000

Gopher2000 - world domination via old school protocols
GNU General Public License v3.0
74 stars 4 forks source link

text lines beginning with periods #1

Open ksherlock opened 10 years ago

ksherlock commented 10 years ago

The gopherpedia file for B-tree (gopher://gopherpedia.com/0/B-tree) contains the following text:

                   Best case and worst case heights                   
======================================================================
 [snipped]

and  give a slightly different expression for the worst case height
(perhaps because the root node is considered to have height 0).
: h \le \left\lfloor \log_{d}\left(\frac{n+1}{2}\right) \right\rfloor
.

 Search 
========

The blank-line period terminates my preferred gopher client early.

RFC 1436 states:

Note: Lines beginning with periods must be prepended with an extra period to ensure that the transmission is not terminated early. The client should strip extra periods at the beginning of the line.

Spaceghost commented 10 years ago

Is that something that the gopher server needs to handle, or the document owner/author?

muffinista commented 10 years ago

I think that's debatable depending on the context, but I'm probably going to fix this. Thanks for pointing it out.