mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-27 05:40:00 +03:00
png reworking
This commit is contained in:
parent
84832e6f86
commit
0ef6ebd977
9 changed files with 1222 additions and 1008 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue