update plaintext spacing

This commit is contained in:
Laura Hausmann 2020-06-12 14:44:08 +02:00
parent 21e4b08cf6
commit b64b8f8473
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
foreach (var leg in db.Legs.Where(p => p.TripId == trip.TripId).OrderBy(p => p.DepTime)) {
if (leg.TrainType == "placeholder") {
<div>
... &nbsp;&nbsp; ..:.. ... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - &nbsp; ... ... &nbsp; - ..:.. ... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
... &nbsp;&nbsp; ..:.. ... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - &nbsp; ... ... &nbsp;&nbsp; - &nbsp; ..:.. ... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...
</div>
continue;
}
@ -33,10 +33,10 @@
var depst = leg.DepStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", "&nbsp;");
var arrt = arrtime.ToString("HH:mm");
var arrst = leg.ArrStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", "&nbsp;");
var line = leg.TrainType.PadLeft(5).Replace(" ", "&nbsp;") + "&nbsp;" + leg.TrainNr.ToString().PadRight(5).Replace(" ", "&nbsp;");
var line = leg.TrainType.PadRight(3).Replace(" ", "&nbsp;") + "&nbsp;" + leg.TrainNr.ToString().PadRight(6).Replace(" ", "&nbsp;");
var comment = leg.Comment;
<div>
@dept @Html.Raw(depst) - @Html.Raw(line) - @arrt @Html.Raw(arrst) @(string.IsNullOrWhiteSpace(comment) ? "..." : comment)
@dept @Html.Raw(depst) - &nbsp; @Html.Raw(line) - &nbsp; @arrt @Html.Raw(arrst) @(string.IsNullOrWhiteSpace(comment) ? "..." : comment)
</div>
}
}