mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 09:45:32 +00:00
- Abstracted the XML-HTML Parser into a neat little state machine
- Added Settings classes for all things XML-HTML conversion
This commit is contained in:
19
HaWeb/Settings/ParsingState/EditState.cs
Normal file
19
HaWeb/Settings/ParsingState/EditState.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace HaWeb.Settings.ParsingState;
|
||||
using System.Text;
|
||||
|
||||
public class EditState : HaWeb.HTMLParser.IState {
|
||||
internal bool active_del;
|
||||
internal bool active_skipwhitespace;
|
||||
|
||||
internal StringBuilder sb_edits;
|
||||
|
||||
public EditState() {
|
||||
SetupState();
|
||||
}
|
||||
|
||||
public void SetupState() {
|
||||
sb_edits = new StringBuilder();
|
||||
active_del = false;
|
||||
active_skipwhitespace = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user