png reworking

This commit is contained in:
Adam D. Ruppe 2013-06-10 12:21:32 -04:00
parent 84832e6f86
commit 0ef6ebd977
9 changed files with 1222 additions and 1008 deletions

View file

@ -124,7 +124,7 @@ string htmlToText(string html, bool wantWordWrap = true, int wrapAmount = 74) {
}
again2:
start.innerHTML = start.innerHTML().replace("\u0001", "\n");
//start.innerHTML = start.innerHTML().replace("\u0001", "\n");
foreach(ele; start.tree) {
if(ele.tagName == "td") {
@ -173,6 +173,9 @@ string htmlToText(string html, bool wantWordWrap = true, int wrapAmount = 74) {
result = result.replace(""", "\""); // HACK: this shouldn't be needed, but apparently is in practice surely due to a bug elsewhere
//result = htmlEntitiesDecode(result); // for special chars mainly
result = result.replace("\u0001 ", "\n");
result = result.replace("\u0001", "\n");
//a = std.regex.replace(a, std.regex.regex("(\n\t)+", "g"), "\n"); //\t");
return result.strip;
}