mirror of https://github.com/knative/docs.git
Make newlines consistent across samples (#3001)
This commit is contained in:
parent
b99e249a69
commit
6ffd239bb6
|
@ -51,7 +51,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-kotlin
|
||||||
embeddedServer(Netty, port.toInt()) {
|
embeddedServer(Netty, port.toInt()) {
|
||||||
routing {
|
routing {
|
||||||
get("/") {
|
get("/") {
|
||||||
call.respondText("Hello $target!", ContentType.Text.Html)
|
call.respondText("Hello $target!\n", ContentType.Text.Html)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.start(wait = true)
|
}.start(wait = true)
|
||||||
|
|
|
@ -13,7 +13,7 @@ fun main(args: Array<String>) {
|
||||||
embeddedServer(Netty, port.toInt()) {
|
embeddedServer(Netty, port.toInt()) {
|
||||||
routing {
|
routing {
|
||||||
get("/") {
|
get("/") {
|
||||||
call.respondText("Hello $target!", ContentType.Text.Html)
|
call.respondText("Hello $target!\n", ContentType.Text.Html)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.start(wait = true)
|
}.start(wait = true)
|
||||||
|
|
|
@ -54,7 +54,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-nodejs
|
||||||
console.log('Hello world received a request.');
|
console.log('Hello world received a request.');
|
||||||
|
|
||||||
const target = process.env.TARGET || 'World';
|
const target = process.env.TARGET || 'World';
|
||||||
res.send(`Hello ${target}!`);
|
res.send(`Hello ${target}!\n`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const port = process.env.PORT || 8080;
|
const port = process.env.PORT || 8080;
|
||||||
|
|
|
@ -5,7 +5,7 @@ app.get('/', (req, res) => {
|
||||||
console.log('Hello world received a request.');
|
console.log('Hello world received a request.');
|
||||||
|
|
||||||
const target = process.env.TARGET || 'World';
|
const target = process.env.TARGET || 'World';
|
||||||
res.send(`Hello ${target}!`);
|
res.send(`Hello ${target}!\n`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const port = process.env.PORT || 8080;
|
const port = process.env.PORT || 8080;
|
||||||
|
|
|
@ -33,7 +33,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-php
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
$target = getenv('TARGET', true) ?: 'World';
|
$target = getenv('TARGET', true) ?: 'World';
|
||||||
echo sprintf("Hello %s!", $target);
|
echo sprintf("Hello %s!\n", $target);
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Create a file named `Dockerfile` and copy the code block below into it. See
|
1. Create a file named `Dockerfile` and copy the code block below into it. See
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
$target = getenv('TARGET', true) ?: 'World';
|
$target = getenv('TARGET', true) ?: 'World';
|
||||||
echo sprintf("Hello %s!", $target);
|
echo sprintf("Hello %s!\n", $target);
|
||||||
|
|
Loading…
Reference in New Issue