diff --git a/README.md b/README.md

index f75a31a..be99a6e 100644

--- a/README.md

+++ b/README.md

@@ -19,7 +19,7 @@ Create the following service file and save it as _~/.config/systemd/user/gmcapsu

 [Unit]

 Description=GmCapsule: extensible Gemini/Titan server

 After=network.target

-

+ 

 [Service]

 Type=simple

 ExecStart=<YOUR-INSTALL-PATH>/gmcapsuled

@@ -28,7 +28,7 @@ Create the following service file and save it as _~/.config/systemd/user/gmcapsu

 StandardOutput=syslog

 StandardError=syslog

 SyslogIdentifier=gmcapsule

-

+ 

 [Install]

 WantedBy=default.target



@@ -47,6 +47,7 @@ The log can be viewed via journalctl (or syslog):

Change log



v0.2

+

@@ -66,5 +67,10 @@ v0.2.3:



+v0.2.4:

+

+* Fixed an error in the Markdown parser.

+

v0.1

+

\ No newline at end of file

diff --git a/gmcapsule/init.py b/gmcapsule/init.py

index e94f658..a0b4a41 100644

--- a/gmcapsule/init.py

+++ b/gmcapsule/init.py

@@ -1,5 +1,5 @@

Copyright (c) 2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



"""



@@ -415,8 +415,8 @@ Future improvements



The following limitations could/should be lifted in the future:



-- Enable value interpolation in the configparser, allowing access to 

- defined values and environment variables. 

+- Enable value interpolation in the configparser, allowing access to

+ defined values and environment variables.

@@ -439,7 +439,7 @@ from .gemini import Server, Cache

from .markdown import to_gemtext as markdown_to_gemtext





-version = '0.2.3'

+__version__ = '0.2.4'

all = [

 'Config', 'Capsule', 'Cache',

 'get_mime_type', 'markdown_to_gemtext'

diff --git a/gmcapsule/gemini.py b/gmcapsule/gemini.py

index 34ac7f6..9cdd06a 100644

--- a/gmcapsule/gemini.py

+++ b/gmcapsule/gemini.py

@@ -1,5 +1,5 @@

Copyright (c) 2021-2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



import fnmatch

import gc

@@ -396,7 +396,7 @@ class Worker(threading.Thread):

     except UnicodeDecodeError:

         report_error(stream, 59, "Request contains malformed UTF-8")

         return

- 

+

     if not request or len(data) > MAX_RECV:

         report_error(stream, 59, "Invalid request")

         return

@@ -555,7 +555,7 @@ class Server:

         self.caches.append(cache)

     self.max_upload_size = max_upload_size

     self.require_upload_identity = require_upload_identity

- 

+

     if not os.path.exists(cert_path):

         raise Exception("certificate file not found: " + str(cert_path))

     if not os.path.exists(key_path):

diff --git a/gmcapsule/markdown.py b/gmcapsule/markdown.py

index c4401a9..b9a2fb3 100644

--- a/gmcapsule/markdown.py

+++ b/gmcapsule/markdown.py

@@ -1,5 +1,5 @@

Copyright (c) 2021 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



import re, string



@@ -75,7 +75,7 @@ def to_gemtext(src):

             line += "\n"

         elif line[:1] == '|' and line[-1:] == '|':

             line += "\n"

- elif not result[-1] in string.whitespace:

+ elif len(result) > 0 and not result[-1] in string.whitespace:

             result += " "

         is_last_empty = False

     elif is_block:

diff --git a/gmcapsule/modules/80_gitview.py b/gmcapsule/modules/80_gitview.py

index 8867463..eaf3ae2 100755

--- a/gmcapsule/modules/80_gitview.py

+++ b/gmcapsule/modules/80_gitview.py

@@ -1,5 +1,5 @@

Copyright (c) 2021-2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



"""Git Repository Viewer"""



diff --git a/gmcapsule/modules/90_cgi.py b/gmcapsule/modules/90_cgi.py

index 11db31c..51d73a2 100644

--- a/gmcapsule/modules/90_cgi.py

+++ b/gmcapsule/modules/90_cgi.py

@@ -1,5 +1,5 @@

Copyright (c) 2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



"""CGI programs"""



diff --git a/gmcapsule/modules/99_static.py b/gmcapsule/modules/99_static.py

index e4468a2..e30f332 100644

--- a/gmcapsule/modules/99_static.py

+++ b/gmcapsule/modules/99_static.py

@@ -1,5 +1,5 @@

Copyright (c) 2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



"""Static files"""



diff --git a/gmcapsuled b/gmcapsuled

index 83cb96f..48f1b44 100755

--- a/gmcapsuled

+++ b/gmcapsuled

@@ -2,7 +2,7 @@

GmCapsule: Extensible Server for Gemini and Titan

#

Copyright (c) 2022 Jaakko Keränen jaakko.keranen@iki.fi

-# License: BSD 2-Clause

+# License: BSD-2-Clause



import argparse



Proxy Information
Original URL
gemini://git.skyjake.fi/gmcapsule/main/pcdiff/ce4c652c8857e9553064d099bf99d3f4fe6ece08
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
69.328042 milliseconds
Gemini-to-HTML Time
2.370715 milliseconds

This content has been proxied by September (3851b).