Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import com.google.common.collect.ImmutableList;
import com.google.googlejavaformat.java.javadoc.JavadocLexer.LexException;
import com.google.googlejavaformat.java.javadoc.Token.BeginJavadoc;
import com.google.googlejavaformat.java.javadoc.Token.BlockquoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockquoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BrTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeOpenTag;
Expand Down Expand Up @@ -119,8 +119,8 @@ private static String render(List<Token> input, int blockIndent, boolean classic
case HeaderOpenTag t -> output.writeHeaderOpen(t);
case HeaderCloseTag t -> output.writeHeaderClose(t);
case ParagraphOpenTag t -> output.writeParagraphOpen(standardizePToken(t));
case BlockquoteOpenTag t -> output.writeBlockquoteOpen(t);
case BlockquoteCloseTag t -> output.writeBlockquoteClose(t);
case BlockQuoteOpenTag t -> output.writeBlockQuoteOpen(t);
case BlockQuoteCloseTag t -> output.writeBlockQuoteClose(t);
case PreOpenTag t -> output.writePreOpen(t);
case PreCloseTag t -> output.writePreClose(t);
case CodeOpenTag t -> output.writeCodeOpen(t);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.PeekingIterator;
import com.google.googlejavaformat.java.javadoc.Token.BeginJavadoc;
import com.google.googlejavaformat.java.javadoc.Token.BlockquoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockquoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BrTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeOpenTag;
Expand Down Expand Up @@ -350,9 +350,9 @@ private Function<String, Token> consumeToken() throws LexException {
} else if (input.tryConsumeRegex(LIST_ITEM_CLOSE_PATTERN)) {
return ListItemCloseTag::new;
} else if (input.tryConsumeRegex(BLOCKQUOTE_OPEN_PATTERN)) {
return BlockquoteOpenTag::new;
return BlockQuoteOpenTag::new;
} else if (input.tryConsumeRegex(BLOCKQUOTE_CLOSE_PATTERN)) {
return BlockquoteCloseTag::new;
return BlockQuoteCloseTag::new;
} else if (input.tryConsumeRegex(HEADER_OPEN_PATTERN)) {
return HeaderOpenTag::new;
} else if (input.tryConsumeRegex(HEADER_CLOSE_PATTERN)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import static com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace.NONE;
import static com.google.googlejavaformat.java.javadoc.JavadocWriter.RequestedWhitespace.WHITESPACE;

import com.google.googlejavaformat.java.javadoc.Token.BlockquoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockquoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.BlockQuoteOpenTag;
import com.google.googlejavaformat.java.javadoc.Token.BrTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeCloseTag;
import com.google.googlejavaformat.java.javadoc.Token.CodeOpenTag;
Expand Down Expand Up @@ -257,15 +257,15 @@ void writeParagraphOpen(Token token) {
writeToken(token);
}

void writeBlockquoteOpen(BlockquoteOpenTag token) {
void writeBlockQuoteOpen(BlockQuoteOpenTag token) {
requestBlankLine();

writeToken(token);

requestNewline();
}

void writeBlockquoteClose(BlockquoteCloseTag token) {
void writeBlockQuoteClose(BlockQuoteCloseTag token) {
requestNewline();

writeToken(token);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ record ParagraphOpenTag(String value) implements Token, StartOfLineToken {}

record ParagraphCloseTag(String value) implements Token {}

record BlockquoteOpenTag(String value) implements Token {}
record BlockQuoteOpenTag(String value) implements Token {}

record BlockquoteCloseTag(String value) implements Token {}
record BlockQuoteCloseTag(String value) implements Token {}

record PreOpenTag(String value) implements Token {}

Expand Down