Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csharp/DiffMatchPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ public string diff_prettyHtml(List<Diff> diffs) {
StringBuilder html = new StringBuilder();
foreach (Diff aDiff in diffs) {
string text = aDiff.text.Replace("&", "&amp;").Replace("<", "&lt;")
.Replace(">", "&gt;").Replace("\n", "&para;<br>");
.Replace(">", "&gt;").Replace("\n", "&para;<br>").Replace("\t", "&emsp;").Replace(" ", "&nbsp;");
switch (aDiff.operation) {
case Operation.INSERT:
html.Append("<ins style=\"background:#e6ffe6;\">").Append(text)
Expand Down