From e50248d6ba9c6885bb79f7c97abe78431ad9f188 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Wed, 26 Jul 2023 14:22:53 +0330 Subject: [PATCH] #401 fixes and improvements --- .../PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs b/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs index ef4774aa..64fe68ee 100644 --- a/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs +++ b/RMuseum/Services/Implementation/PDFLibraryService-Partials/PDFLibraryService-SohaLibrary.cs @@ -230,7 +230,7 @@ namespace RMuseum.Services.Implementation int idxEnd = html.IndexOf("<", idxStart); if (idxEnd == -1) break; - string tagName = html.Substring(idxStart + 1, idxEnd - idxStart - 1).ToPersianNumbers().ApplyCorrectYeKe(); + string tagName = html.Substring(idxStart + 1, idxEnd - idxStart - 1).ToPersianNumbers().ApplyCorrectYeKe().Trim(); idxStart = html.IndexOf("value-name", idxEnd); if (idxStart == -1) break;