Repository navigation
fix: escape pipe character with | and enforce UTF-8 file encoding - #19
Open
shellyco-code wants to merge 1 commit into
Open
shellyco-code wants to merge 1 commit into
shellyco-code wants to merge 1 commit into
Conversation
Signed-off-by: shellyco-code <shellyco-code@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Fixes #18.
This PR fixes two formatting and encoding bugs in
.github/workflows/generate.py:Fix Pipe Escaping Entity (
	→|):escape(), pipe characters (|) in project names were previously replaced with	(the HTML entity for ASCII Horizontal Tab\t) instead of the pipe entity|.iot.ignite)—to be displayed with an awkward whitespace tab gap (Eclipse Ignite IoT) on the published website.|preserves the pipe character visually in HTML while preventing Markdown table parser breakage.Explicit UTF-8 Encoding:
encoding="utf-8"toopen(OUTPUT, "w")to ensure consistent cross-platform file writing across environments with non-UTF-8 default locales (e.g. Windowscp1252), safeguarding Unicode characters such as®,™, and accented letters.Verification & Testing
generate.pyagainst the live Eclipse PMI API (retrieving all 450+ projects across 6 pages).docs/projects.csv:iot.ignitenow correctly outputs:| Eclipse Ignite|IoT | [iot.ignite](https://projects.eclipse.org/projects/iot.ignite) | [eclipse](https://github.com/eclipse) |	.mkdocs build:_site/without errors._site/index.html:Eclipse Ignite|IoTrenders the vertical pipe character cleanly inside the table cell.Signed-off-by
Signed-off-by: shellyco-code shellyco-code@users.noreply.github.com