Class CommentFormatter
- java.lang.Object
-
- com.google.gerrit.server.mail.send.CommentFormatter
-
public class CommentFormatter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommentFormatter.Block
static class
CommentFormatter.BlockType
-
Constructor Summary
Constructors Constructor Description CommentFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.collect.ImmutableList<CommentFormatter.Block>
parse(String source)
Take a string of comment text that was written using the wiki-Like format and emit a list of blocks that can be rendered to block-level HTML.
-
-
-
Method Detail
-
parse
public static com.google.common.collect.ImmutableList<CommentFormatter.Block> parse(String source)
Take a string of comment text that was written using the wiki-Like format and emit a list of blocks that can be rendered to block-level HTML. This method does not escape HTML.Adapted from the
wikify
method found in: com.google.gwtexpui.safehtml.client.SafeHtml- Parameters:
source
- The raw, unescaped comment in the Gerrit wiki-like format.- Returns:
- List of block objects, each with unescaped comment content.
-
-