mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
Fixed some bugs on parsing the appDefs
This commit is contained in:
@@ -42,6 +42,7 @@ namespace HaDocument
|
|||||||
new PersonDefsReactor(_reader, _lib);
|
new PersonDefsReactor(_reader, _lib);
|
||||||
new TraditionsReactor(_reader, _lib, _settings.NormalizeWhitespace);
|
new TraditionsReactor(_reader, _lib, _settings.NormalizeWhitespace);
|
||||||
new CommentReactor(_reader, _lib, _settings.NormalizeWhitespace);
|
new CommentReactor(_reader, _lib, _settings.NormalizeWhitespace);
|
||||||
|
new AppDefsReactor(_reader, _lib);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void _createReader() {
|
private static void _createReader() {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ namespace HaDocument.Models {
|
|||||||
) {
|
) {
|
||||||
Index = index;
|
Index = index;
|
||||||
Name = name;
|
Name = name;
|
||||||
|
Category = category;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,14 +10,13 @@ namespace HaDocument.Reactors {
|
|||||||
class AppDefsReactor : Reactor {
|
class AppDefsReactor : Reactor {
|
||||||
internal Dictionary<string, App> CreatedInstances;
|
internal Dictionary<string, App> CreatedInstances;
|
||||||
|
|
||||||
|
|
||||||
// State
|
// State
|
||||||
private string Index;
|
private string Index;
|
||||||
private string Name;
|
private string Name;
|
||||||
private bool Category;
|
private bool Category;
|
||||||
|
|
||||||
internal AppDefsReactor(IReader reader, IntermediateLibrary lib) : base(reader, lib) {
|
internal AppDefsReactor(IReader reader, IntermediateLibrary lib) : base(reader, lib) {
|
||||||
lib.Locations = new Dictionary<string, Location>();
|
lib.Apps = new Dictionary<string, App>();
|
||||||
CreatedInstances = lib.Apps;
|
CreatedInstances = lib.Apps;
|
||||||
reader.Tag += Listen;
|
reader.Tag += Listen;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user