Skip to content

Commit 6a18872

Browse files
committed
Fix empty combo serialization and update README
1 parent eb4ef86 commit 6a18872

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# https://popruns.github.io/
22
# Build
3-
To build and test the site locally, open the root directory in a terminal and run `python3 build.py`. Requires Python 3+ and .NET SDK 9+.
3+
To build and test the site locally, open the root directory in a terminal and run `python3 build.py`, then open http://127.0.0.1:8080 in a browser. Hit `Ctrl+C` in the terminal to stop testing. Requires Python 3+ and .NET SDK 9+.
44

5-
To test just the raw HTML/CSS/JS pages locally, open the root directory in a terminal and run `python3 -m http.server`. Requires Python 3+.
5+
To test just the raw HTML/CSS/JS pages locally (no Blazor), open the root directory in a terminal and run `python3 -m http.server`, then open http://127.0.0.1:8000 in a browser. Hit `Ctrl+C` in the terminal to stop testing. Requires Python 3+.
6+
7+
## For Novices
8+
Before testing the site locally, first you need to clone/download the repository, and then open the repository's root directory in a terminal. E.g. in Windows you can do this by navigating to the root directory in file explorer, then right-clicking on any empty space, and pressing "Open in Terminal". Alternatively (in any operating system), open the "Terminal" app, then type `cd path/to/repository` and replace `path/to/repository` with the path for where you cloned/downloaded the repository, e.g. `cd C:\Users\JohnSmith\Documents\github\popruns.github.io`.

blazor/PoprunsBlazorPages/Pages/pop-2008/combo-generator/Generator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static string Serialize(IEnumerable<MultiCombo> multiComboStream)
8787
}
8888
builder.Append(' ');
8989
}
90-
while (char.IsWhiteSpace(builder[^1]))
90+
while (builder.Length > 0 && char.IsWhiteSpace(builder[^1]))
9191
builder.Remove(builder.Length - 1, 1);
9292
return builder.ToString();
9393
}

0 commit comments

Comments
 (0)