From 0411add4d1b901d0a8202aceaf9d6d0c161dca85 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 9 Mar 2021 17:45:49 +0100 Subject: [PATCH] added a newline macro to the default text formatter --- MLEM/Formatting/TextFormatter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MLEM/Formatting/TextFormatter.cs b/MLEM/Formatting/TextFormatter.cs index ab23037..8bc7c8d 100644 --- a/MLEM/Formatting/TextFormatter.cs +++ b/MLEM/Formatting/TextFormatter.cs @@ -53,6 +53,7 @@ namespace MLEM.Formatting { // macros this.Macros.Add(new Regex("~"), (f, m, r) => GenericFont.Nbsp.ToCachedString()); + this.Macros.Add(new Regex(""), (f, m, r) => '\n'.ToCachedString()); } ///