mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +00:00
Work around embedding of bold tags in XML for all hafas based providers
This commit is contained in:
parent
2e9f7d59c7
commit
d2cd0b6603
2 changed files with 2 additions and 2 deletions
|
@ -651,6 +651,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
{
|
{
|
||||||
// work around unparsable XML
|
// work around unparsable XML
|
||||||
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), " & ", " & ");
|
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), " & ", " & ");
|
||||||
|
reader.replace("<b>", " ");
|
||||||
|
reader.replace("</b>", " ");
|
||||||
reader.replace(" ->", " →"); // right arrow
|
reader.replace(" ->", " →"); // right arrow
|
||||||
reader.replace(" <-", " ←"); // left arrow
|
reader.replace(" <-", " ←"); // left arrow
|
||||||
addCustomReplaces(reader);
|
addCustomReplaces(reader);
|
||||||
|
|
|
@ -202,8 +202,6 @@ public class NvvProvider extends AbstractHafasProvider
|
||||||
reader.replace("</ul>", " ");
|
reader.replace("</ul>", " ");
|
||||||
reader.replace("<li>", " ");
|
reader.replace("<li>", " ");
|
||||||
reader.replace("</li>", " ");
|
reader.replace("</li>", " ");
|
||||||
reader.replace("<b>", " ");
|
|
||||||
reader.replace("</b>", " ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue