You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2019/05/11 22:53:15 UTC
[incubator-tamaya-sandbox] 01/03: LHF: Fix typo, use UTF-8 from JDK
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya-sandbox.git
commit ccc81ab6b7c8613e8e7b42d7d08be90dbb639918
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Sun May 12 00:38:58 2019 +0200
LHF: Fix typo, use UTF-8 from JDK
---
.../src/main/java/org/apache/tamaya/doc/formats/HtmlDocFormat.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/documentation/src/main/java/org/apache/tamaya/doc/formats/HtmlDocFormat.java b/documentation/src/main/java/org/apache/tamaya/doc/formats/HtmlDocFormat.java
index f92b53b..6b43280 100644
--- a/documentation/src/main/java/org/apache/tamaya/doc/formats/HtmlDocFormat.java
+++ b/documentation/src/main/java/org/apache/tamaya/doc/formats/HtmlDocFormat.java
@@ -27,6 +27,7 @@ import org.apache.tamaya.doc.DocumentedProperty;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
@@ -53,7 +54,7 @@ import static j2html.TagCreator.tr;
import static j2html.TagCreator.ul;
/**
- * An HTML-based documentation format.
+ * A HTML-based documentation format.
*/
public class HtmlDocFormat implements DocFormat<String> {
@Override
@@ -94,7 +95,7 @@ public class HtmlDocFormat implements DocFormat<String> {
private ContainerTag createHead(DocumentedConfiguration config) {
return head(title("Tamaya Configuration - " + config.getName() + " " +
config.getVersion()),
- meta().withCharset("utf-8"),
+ meta().withCharset(StandardCharsets.UTF_8.displayName()),
meta().withName("viewport").withContent("width=device-width, initial-scale=0.9, shrink-to-fit=yes"),
link().withRel("stylesheet")
.withHref("https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css")