Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Opening hours newline inconsistencies #8

Open
CommanderStorm opened this issue Jun 7, 2022 · 0 comments
Open

Opening hours newline inconsistencies #8

CommanderStorm opened this issue Jun 7, 2022 · 0 comments

Comments

@CommanderStorm
Copy link
Member

as noticed in TUM-Dev/Campus-Android#1369, there sems to be some inconsitency in Opening Hours newlines.

The newlines within the json vary among literal "\\n", "\/n" and "\n". Both 1 and 2 are essentially wrong following ECMA 404. Number 1 is where this issue appears, number 2 is "fixed" by the weird string-replace stuff happening here.

Gson (correctly) interprets the "\\n" in the json as literal "\n", "\/n" as "/n", and "\n" as an actual newline character. While number 1 probably occurs because of a single escaping backslash too many (in the json source), I don't really see why number 2 would happen, even though it seems to be the most frequent by far.
Other json elements are also affected (like "infos").

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant