From 6ffd239bb657ccb74222458a1a7916a48ec66bf2 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Thu, 5 Nov 2020 17:30:08 -0800 Subject: [PATCH] Make newlines consistent across samples (#3001) --- docs/serving/samples/hello-world/helloworld-kotlin/README.md | 2 +- .../helloworld-kotlin/src/main/kotlin/com/example/hello/Main.kt | 2 +- docs/serving/samples/hello-world/helloworld-nodejs/README.md | 2 +- docs/serving/samples/hello-world/helloworld-nodejs/index.js | 2 +- docs/serving/samples/hello-world/helloworld-php/README.md | 2 +- docs/serving/samples/hello-world/helloworld-php/index.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/serving/samples/hello-world/helloworld-kotlin/README.md b/docs/serving/samples/hello-world/helloworld-kotlin/README.md index ff4b98e7a..ae2711b45 100644 --- a/docs/serving/samples/hello-world/helloworld-kotlin/README.md +++ b/docs/serving/samples/hello-world/helloworld-kotlin/README.md @@ -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) diff --git a/docs/serving/samples/hello-world/helloworld-kotlin/src/main/kotlin/com/example/hello/Main.kt b/docs/serving/samples/hello-world/helloworld-kotlin/src/main/kotlin/com/example/hello/Main.kt index 9745ffcef..13fd6c2cb 100644 --- a/docs/serving/samples/hello-world/helloworld-kotlin/src/main/kotlin/com/example/hello/Main.kt +++ b/docs/serving/samples/hello-world/helloworld-kotlin/src/main/kotlin/com/example/hello/Main.kt @@ -13,7 +13,7 @@ fun main(args: Array) { embeddedServer(Netty, port.toInt()) { routing { get("/") { - call.respondText("Hello $target!", ContentType.Text.Html) + call.respondText("Hello $target!\n", ContentType.Text.Html) } } }.start(wait = true) diff --git a/docs/serving/samples/hello-world/helloworld-nodejs/README.md b/docs/serving/samples/hello-world/helloworld-nodejs/README.md index 1219fec19..054d3f7cd 100644 --- a/docs/serving/samples/hello-world/helloworld-nodejs/README.md +++ b/docs/serving/samples/hello-world/helloworld-nodejs/README.md @@ -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; diff --git a/docs/serving/samples/hello-world/helloworld-nodejs/index.js b/docs/serving/samples/hello-world/helloworld-nodejs/index.js index 7c2b068a0..98b117bc5 100644 --- a/docs/serving/samples/hello-world/helloworld-nodejs/index.js +++ b/docs/serving/samples/hello-world/helloworld-nodejs/index.js @@ -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; diff --git a/docs/serving/samples/hello-world/helloworld-php/README.md b/docs/serving/samples/hello-world/helloworld-php/README.md index 4669aa2a7..b8dd90fad 100644 --- a/docs/serving/samples/hello-world/helloworld-php/README.md +++ b/docs/serving/samples/hello-world/helloworld-php/README.md @@ -33,7 +33,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-php ```php