From e17a47bb85718fe2528a65b8a8c896ede9944c11 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Sep 2024 17:10:20 +0300 Subject: [PATCH] remove extra space from tag values --- src/app/browser/main/tab/page/content/text/gemini/reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp index 9d3d58f1..c2fc20dc 100644 --- a/src/app/browser/main/tab/page/content/text/gemini/reader.cpp +++ b/src/app/browser/main/tab/page/content/text/gemini/reader.cpp @@ -140,7 +140,7 @@ bool Reader::Line::Match::header( Glib::ustring & text ) { auto match = Glib::Regex::split_simple( - R"regex(^(#{1,3})(.*)$)regex", + R"regex(^(#{1,3})\s*(.*)$)regex", GEMTEXT ); @@ -189,7 +189,7 @@ bool Reader::Line::Match::quote( Glib::ustring & quote ) { auto match = Glib::Regex::split_simple( - R"regex(^>(.*)$)regex", + R"regex(^>\s*(.*)$)regex", GEMTEXT );