Skip to content

Commit

Permalink
[change] Change new lines used in index and help pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Jan 18, 2019
1 parent bf7a661 commit 54481b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/piping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ const NAME_TO_RESERVED_PATH = {
help: "/help"
};

const indexPage: string = `
<html>
const indexPage: string =
`<html>
<head>
<title>Piping</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
Expand Down Expand Up @@ -113,8 +113,7 @@ const indexPage: string = `
};
</script>
</body>
</html>
`;
</html>`;

/**
* Generate help page
Expand All @@ -123,7 +122,8 @@ const indexPage: string = `
*/
// tslint:disable-next-line:no-shadowed-variable
function generateHelpPage(url: string): string {
return `Help for piping-server ${VERSION}
return (
`Help for piping-server ${VERSION}
(Repository: https://github.com/nwtgck/piping-server)
======= Get =======
Expand All @@ -147,7 +147,7 @@ tar zfcp - ./mydir | curl -T - ${url}/mypath
cat myfile | openssl aes-256-cbc | curl -T - ${url}/mypath
## Get
curl ${url}/mypath | openssl aes-256-cbc -d
`;
`);
}

// All reserved paths
Expand Down

0 comments on commit 54481b6

Please sign in to comment.