Skip to content

Commit

Permalink
Fix control characters in table
Browse files Browse the repository at this point in the history
  • Loading branch information
no2chem committed Apr 13, 2018
1 parent 640f823 commit 604d22c
Show file tree
Hide file tree
Showing 3 changed files with 1,330 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "soss-cli",
"version": "0.1.4",
"version": "0.1.5",
"description": "Command line interface for California Hydrogen Station Operational Status System",
"main": "build/src/cli.js",
"bin": {
Expand Down
3 changes: 3 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ commander.command('nearest [location...]')
if (statusItem === undefined) {
throw new Error(`Unknown station ${stationId}`);
}
if (statusItem.message !== undefined) {
statusItem.message = statusItem.message.replace('\r\n', '');
}
mapped.push([
`${
Number(geolib.convertUnit('mi', distanceItem.distance))
Expand Down
Loading

0 comments on commit 604d22c

Please sign in to comment.