From 1ce536e9106dff86b39aca402be458ca15dfa1f1 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 28 Jul 2023 07:07:38 +0300

Subject: [PATCH 1/1] Clean whitespace at the end of segments, posts, comments


50_bubble.py | 2 +-

composer.py | 4 ++--

2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/50_bubble.py b/50_bubble.py

index b355cdc..4e00705 100644

--- a/50_bubble.py

+++ b/50_bubble.py

@@ -361,7 +361,7 @@ Bubble is open source:

                 src += f'=> {segment.url} {link_prefix}{label}\n'

                 last_type = segment.type

     def render_poll(self, post, show_results=False):

         options = self.db.get_segments(post, poll=True)

diff --git a/composer.py b/composer.py

index 17d160d..71c5923 100644

--- a/composer.py

+++ b/composer.py

@@ -63,7 +63,7 @@ def edit_segment(session):

                 return 30, f'{session.server_root()}{session.path}raw-segment/{segment.id}'

         else:

             seg_text = clean_text(req.content.decode('utf-8'))

     elif segment.type == Segment.POLL:

         opt_text = clean_title(clean_query(req))

@@ -155,7 +155,7 @@ def make_composer_page(session):

     if not is_empty_query(req) or (session.is_titan and len(req.content)):

         seg_text = clean_query(req) if session.is_gemini \

             else clean_text(req.content.decode('utf-8'))

         return 30, gemini_link

     return 10, 'Add text segment:'

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/patch/1ce536e9106dff86b39aca402be458ca15dfa1f1.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
29.427314 milliseconds
Gemini-to-HTML Time
0.603126 milliseconds

This content has been proxied by September (ba2dc).