From 718b4fc85a89d28f7f9ffa39094d16a05f77a4a0 Mon Sep 17 00:00:00 2001 From: Jon Thysell Date: Sun, 13 Jun 2021 21:44:01 -0700 Subject: [PATCH] Fixed MamakaKaiao source parsing of page breaks --- CHANGELOG.md | 1 + src/HawDict/Input/MamakaKaiaoInputDict.cs | 2 +- src/HawDict/Input/PlaceNamesInputDict.cs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91b88ec..29622d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## next ## * Fixed PukuiElbert source parsing of page breaks +* Fixed MamakaKaiao source parsing of page breaks ## v0.11 ## diff --git a/src/HawDict/Input/MamakaKaiaoInputDict.cs b/src/HawDict/Input/MamakaKaiaoInputDict.cs index 2a508a6..cae2a82 100644 --- a/src/HawDict/Input/MamakaKaiaoInputDict.cs +++ b/src/HawDict/Input/MamakaKaiaoInputDict.cs @@ -37,7 +37,7 @@ protected override string CleanSourceHtml(string s) s = s .Replace("spanclass", "span class") - .Replace("

 

\n
", "") + .Replace("

 

\n
", "") .Replace("

\n\n\n \n\n\n

\n", " ") .Replace("

\n\n\n \n\n\n

", " ") .Replace("", "") diff --git a/src/HawDict/Input/PlaceNamesInputDict.cs b/src/HawDict/Input/PlaceNamesInputDict.cs index 58b1fff..444129d 100644 --- a/src/HawDict/Input/PlaceNamesInputDict.cs +++ b/src/HawDict/Input/PlaceNamesInputDict.cs @@ -27,7 +27,6 @@ protected override string CleanSourceHtml(string s) { s = Regex.Replace(s, "
\n




\n
GLOSSARY
.*

AaAaAa

", "
\n

AaAaAa

", RegexOptions.Singleline); - s = s.Replace("

Ke-au-kaha
", "Ke-au-kaha") .Replace("

 

\n
", " ") .Replace("

Ke-kaulike", "Ke-kaulike")