mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Added marginal search. Some refactoring
This commit is contained in:
@@ -36,7 +36,7 @@ public static class CommentRules {
|
||||
if (reader.State.Category == "bibel" && reader.State.Type == HaWeb.Settings.ParsingState.CommentType.Subcomment &&
|
||||
reader.OpenTags.Any() && reader.OpenTags.Last().Name == "lemma" &&
|
||||
!txt.Value.Contains("Stücke zu") && !txt.Value.Contains("ZusDan")) {
|
||||
var lnkstring = Regex.Replace(txt.Value, @"\s+", "");
|
||||
var lnkstring = Regex.Replace(txt.Value, @"\s+", string.Empty);
|
||||
sb.Append(HTMLHelpers.TagHelpers.CreateCustomElement("a",
|
||||
new HaWeb.HTMLHelpers.TagHelpers.Attribute() { Name = "href", Value = "https://www.bibleserver.com/LUT/" + lnkstring},
|
||||
new HaWeb.HTMLHelpers.TagHelpers.Attribute() { Name = "target", Value = "_blank"},
|
||||
|
||||
@@ -50,7 +50,7 @@ public class LetterState : HaWeb.HTMLParser.IState {
|
||||
sb_lettertext = new StringBuilder();
|
||||
active_skipwhitespace = true;
|
||||
currline = "-1";
|
||||
currpage = "";
|
||||
currpage = string.Empty;
|
||||
mustwrap = (false, false);
|
||||
minwidth = false;
|
||||
|
||||
|
||||
@@ -50,6 +50,6 @@ public class TraditionState : HaWeb.HTMLParser.IState {
|
||||
active_trad = false;
|
||||
active_skipwhitespace = true;
|
||||
currline = "-1";
|
||||
currpage = "";
|
||||
currpage = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user