You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2018/08/07 08:34:42 UTC

[GitHub] dawidwys commented on a change in pull request #6294: [FLINK-9013][docs] Document yarn.containers.vcores only being effective whe…

dawidwys commented on a change in pull request #6294: [FLINK-9013][docs] Document yarn.containers.vcores only being effective whe…
URL: https://github.com/apache/flink/pull/6294#discussion_r208142810
 
 

 ##########
 File path: flink-core/src/main/java/org/apache/flink/configuration/description/TextElement.java
 ##########
 @@ -53,6 +55,16 @@ public static TextElement text(String text) {
 		return new TextElement(text, Collections.emptyList());
 	}
 
+	/**
+	 * Tries to format the text as code.
+	 *
+	 * @return text element with applied formatting
+	 */
+	public TextElement formatAsCode() {
 
 Review comment:
   I thought about it. The reason why I chose it as part of `TextElement` is that this way we could implement styles as e.g. div classes in a single node. With explicit element we would always need to model it as node hierarchy.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services