Make newlines consistent across samples (#3001)

This commit is contained in:
Matt Moore 2020-11-05 17:30:08 -08:00 committed by GitHub
parent b99e249a69
commit 6ffd239bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-kotlin
embeddedServer(Netty, port.toInt()) {
routing {
get("/") {
call.respondText("Hello $target!", ContentType.Text.Html)
call.respondText("Hello $target!\n", ContentType.Text.Html)
}
}
}.start(wait = true)

View File

@ -13,7 +13,7 @@ fun main(args: Array<String>) {
embeddedServer(Netty, port.toInt()) {
routing {
get("/") {
call.respondText("Hello $target!", ContentType.Text.Html)
call.respondText("Hello $target!\n", ContentType.Text.Html)
}
}
}.start(wait = true)

View File

@ -54,7 +54,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-nodejs
console.log('Hello world received a request.');
const target = process.env.TARGET || 'World';
res.send(`Hello ${target}!`);
res.send(`Hello ${target}!\n`);
});
const port = process.env.PORT || 8080;

View File

@ -5,7 +5,7 @@ app.get('/', (req, res) => {
console.log('Hello world received a request.');
const target = process.env.TARGET || 'World';
res.send(`Hello ${target}!`);
res.send(`Hello ${target}!\n`);
});
const port = process.env.PORT || 8080;

View File

@ -33,7 +33,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-php
```php
<?php
$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

View File

@ -1,3 +1,3 @@
<?php
$target = getenv('TARGET', true) ?: 'World';
echo sprintf("Hello %s!", $target);
echo sprintf("Hello %s!\n", $target);