This repository has been archived by the owner on May 15, 2023. It is now read-only.
This repository has been archived by the owner on May 15, 2023. It is now read-only.
Opening hours newline inconsistencies #8
Open
Description
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").
Metadata
Metadata
Assignees
Labels
No labels
Activity