Skip to content

Commit effebfa

Browse files
committed
Don't add pipe method to TextContentWriter
I'm not sure how generally useful it would be.
1 parent 43f50dd commit effebfa

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

commonmark-ext-gfm-tables/src/main/java/org/commonmark/ext/gfm/tables/internal/TableTextContentNodeRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected void renderRow(TableRow tableRow) {
4545

4646
protected void renderCell(TableCell tableCell) {
4747
renderChildren(tableCell);
48-
textContentWriter.pipe();
48+
textContentWriter.write('|');
4949
textContentWriter.whitespace();
5050
}
5151

commonmark/src/main/java/org/commonmark/renderer/text/TextContentWriter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ public void colon() {
2424
}
2525
}
2626

27-
public void pipe() {
28-
if (lastChar != 0 && lastChar != '|') {
29-
append('|');
30-
}
31-
}
32-
3327
public void line() {
3428
if (lastChar != 0 && lastChar != '\n') {
3529
append('\n');

0 commit comments

Comments
 (0)