mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-18 10:34:22 +00:00
removes message carriage returns
This commit is contained in:
parent
8d17153686
commit
095a95a3a9
@ -131,6 +131,8 @@ else
|
|||||||
string input = "___";
|
string input = "___";
|
||||||
if (context.Body.Contains(input)){
|
if (context.Body.Contains(input)){
|
||||||
context.Body = context.Body.Split(input)[0];
|
context.Body = context.Body.Split(input)[0];
|
||||||
|
context.Body = context.Body.Replace("\n", "");
|
||||||
|
context.Body = context.Body.Replace("\r", "");
|
||||||
} }
|
} }
|
||||||
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
|
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
|
||||||
</td>
|
</td>
|
||||||
@ -161,6 +163,8 @@ else
|
|||||||
string input = "___";
|
string input = "___";
|
||||||
if (context.Body.Contains(input)){
|
if (context.Body.Contains(input)){
|
||||||
context.Body = context.Body.Split(input)[0];
|
context.Body = context.Body.Split(input)[0];
|
||||||
|
context.Body = context.Body.Replace("\n", "");
|
||||||
|
context.Body = context.Body.Replace("\r", "");
|
||||||
} }
|
} }
|
||||||
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
|
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user