update plaintext spacing
This commit is contained in:
parent
21e4b08cf6
commit
b64b8f8473
|
@ -22,7 +22,7 @@
|
||||||
foreach (var leg in db.Legs.Where(p => p.TripId == trip.TripId).OrderBy(p => p.DepTime)) {
|
foreach (var leg in db.Legs.Where(p => p.TripId == trip.TripId).OrderBy(p => p.DepTime)) {
|
||||||
if (leg.TrainType == "placeholder") {
|
if (leg.TrainType == "placeholder") {
|
||||||
<div>
|
<div>
|
||||||
... ..:.. ... - ... ... - ..:.. ... ...
|
... ..:.. ... - ... ... - ..:.. ... ...
|
||||||
</div>
|
</div>
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,10 @@
|
||||||
var depst = leg.DepStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", " ");
|
var depst = leg.DepStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", " ");
|
||||||
var arrt = arrtime.ToString("HH:mm");
|
var arrt = arrtime.ToString("HH:mm");
|
||||||
var arrst = leg.ArrStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", " ");
|
var arrst = leg.ArrStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", " ");
|
||||||
var line = leg.TrainType.PadLeft(5).Replace(" ", " ") + " " + leg.TrainNr.ToString().PadRight(5).Replace(" ", " ");
|
var line = leg.TrainType.PadRight(3).Replace(" ", " ") + " " + leg.TrainNr.ToString().PadRight(6).Replace(" ", " ");
|
||||||
var comment = leg.Comment;
|
var comment = leg.Comment;
|
||||||
<div>
|
<div>
|
||||||
@dept @Html.Raw(depst) - @Html.Raw(line) - @arrt @Html.Raw(arrst) @(string.IsNullOrWhiteSpace(comment) ? "..." : comment)
|
@dept @Html.Raw(depst) - @Html.Raw(line) - @arrt @Html.Raw(arrst) @(string.IsNullOrWhiteSpace(comment) ? "..." : comment)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue