Skip to content

Commit

Permalink
fix: table not properly rendered in notices (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y authored Mar 7, 2024
1 parent bf25c9b commit ff04760
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,23 @@ private static long getRouteKey(GtfsRoute route) {
*
* <p>Example of bad data:
*
* <pre>
* | `route_id` | `route_short_name` | `route_long_name` |
* |------------ |-------------------- |------------------- |
* | route1 | U1 | Southern |
* | route2 | U1 | Southern |
* </pre>
* <table style="table-layout:auto; width:auto;">
* <tr>
* <th><code>route_id</code></th>
* <th><code>route_short_name</code></th>
* <th><code>route_long_name</code></th>
* </tr>
* <tr>
* <td>route1</td>
* <td>U1</td>
* <td>Southern</td>
* </tr>
* <tr>
* <td>route2</td>
* <td>U1</td>
* <td>Southern</td>
* </tr>
* </table>
*/
@GtfsValidationNotice(
severity = WARNING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,21 +340,68 @@ private static double getMaxVehicleSpeedKph(GtfsRouteType routeType) {
*
* <p>The speed threshold depends on route type:
*
* <pre>
* | Route type | Description | Threshold, km/h |
* |------------|-------------|-----------------|
* | 0 | Light rail | 100 |
* | 1 | Subway | 150 |
* | 2 | Rail | 500 |
* | 3 | Bus | 150 |
* | 4 | Ferry | 80 |
* | 5 | Cable tram | 30 |
* | 6 | Aerial lift | 50 |
* | 7 | Funicular | 50 |
* | 11 | Trolleybus | 150 |
* | 12 | Monorail | 150 |
* | - | Unknown | 200 |
* </pre>
* <table style="width: auto; table-layout: auto;">
* <tr>
* <th>Route type</th>
* <th>Description</th>
* <th>Threshold, km/h</th>
* </tr>
* <tr>
* <td>0</td>
* <td>Light rail</td>
* <td>100</td>
* </tr>
* <tr>
* <td>1</td>
* <td>Subway</td>
* <td>150</td>
* </tr>
* <tr>
* <td>2</td>
* <td>Rail</td>
* <td>500</td>
* </tr>
* <tr>
* <td>3</td>
* <td>Bus</td>
* <td>150</td>
* </tr>
* <tr>
* <td>4</td>
* <td>Ferry</td>
* <td>80</td>
* </tr>
* <tr>
* <td>5</td>
* <td>Cable tram</td>
* <td>30</td>
* </tr>
* <tr>
* <td>6</td>
* <td>Aerial lift</td>
* <td>50</td>
* </tr>
* <tr>
* <td>7</td>
* <td>Funicular</td>
* <td>50</td>
* </tr>
* <tr>
* <td>11</td>
* <td>Trolleybus</td>
* <td>150</td>
* </tr>
* <tr>
* <td>12</td>
* <td>Monorail</td>
* <td>150</td>
* </tr>
* <tr>
* <td>-</td>
* <td>Unknown</td>
* <td>200</td>
* </tr>
* </table>
*/
@GtfsValidationNotice(
severity = WARNING,
Expand Down

0 comments on commit ff04760

Please sign in to comment.