mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
Moved unused code into Achive
This commit is contained in:
16
Archive/HaDocument/Logic/Helpers.cs
Normal file
16
Archive/HaDocument/Logic/Helpers.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using HaXMLReader.EvArgs;
|
||||
using System.Linq;
|
||||
|
||||
namespace HaDocument {
|
||||
static class Helpers {
|
||||
internal static string GetElementString(Tag tag) {
|
||||
var res = "<" + (tag.EndTag ? "/" : "") + tag.Name.ToLower();
|
||||
if (!tag.EndTag && tag.Values != null && tag.Values.Any()) {
|
||||
foreach (var kvp in tag.Values) {
|
||||
res += " " + kvp.Key.ToLower() + "=\"" + kvp.Value.ToLower() + "\"";
|
||||
}
|
||||
}
|
||||
return res + (tag.IsEmpty ? "/" : "") + ">";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user