mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
catch amateurish attempt to draw arrows using xml reserved characters
This commit is contained in:
parent
a2255d0835
commit
38c34addbc
1 changed files with 2 additions and 2 deletions
|
@ -598,8 +598,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
{
|
||||
// work around unparsable XML
|
||||
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), " & ", " & ");
|
||||
reader.replace("Ringbahn ->", "Ringbahn ->"); // Berlin
|
||||
reader.replace("Ringbahn <-", "Ringbahn <-"); // Berlin
|
||||
reader.replace(" ->", " →"); // right arrow
|
||||
reader.replace(" <-", " ←"); // left arrow
|
||||
addCustomReplaces(reader);
|
||||
|
||||
// System.out.println(uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue