fix spacing, fix #597
This commit is contained in:
parent
7013d9174c
commit
590627bc58
|
@ -46,6 +46,10 @@ $expand-color: $column-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Mastodon styling
|
//Mastodon styling
|
||||||
:host ::ng-deep .content {
|
:host ::ng-deep .content {
|
||||||
|
|
|
@ -97,7 +97,7 @@ export class DatabindedTextComponent implements OnInit {
|
||||||
let extractedUrl = extractedLinkAndNext[0].split('href="')[1].split('"')[0];
|
let extractedUrl = extractedLinkAndNext[0].split('href="')[1].split('"')[0];
|
||||||
|
|
||||||
let classname = this.getClassNameForHastag(extractedHashtag);
|
let classname = this.getClassNameForHastag(extractedHashtag);
|
||||||
this.processedText += ` <a href="${extractedUrl}" class="${classname}" title="#${extractedHashtag}" target="_blank" rel="noopener noreferrer">#${extractedHashtag}</a>`;
|
this.processedText += `<a href="${extractedUrl}" class="${classname}" title="#${extractedHashtag}" target="_blank" rel="noopener noreferrer">#${extractedHashtag}</a>`;
|
||||||
if (extractedLinkAndNext[1]) this.processedText += extractedLinkAndNext[1];
|
if (extractedLinkAndNext[1]) this.processedText += extractedLinkAndNext[1];
|
||||||
this.hashtags.push(extractedHashtag);
|
this.hashtags.push(extractedHashtag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue