Skip to content

Commit

Permalink
[DOXIA-715] Consider attributes for text(...) in AptSink and
Browse files Browse the repository at this point in the history
MarkdownSink
  • Loading branch information
kwin committed Dec 29, 2023
1 parent ef41ffa commit f9b57b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ public void nonBreakingSpace() {

@Override
public void text(String text, SinkEventAttributes attributes) {
if (attributes != null) {
inline(attributes);
}
if (tableCaptionFlag) {
tableCaptionBuffer.append(text);
} else if (headerFlag || bufferFlag) {
Expand All @@ -817,6 +820,9 @@ public void text(String text, SinkEventAttributes attributes) {
} else {
content(text);
}
if (attributes != null) {
inline_();
}
}

/** {@inheritDoc} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ public void nonBreakingSpace() {

@Override
public void text(String text, SinkEventAttributes attributes) {
if (attributes != null) {
inline(attributes);
}
if (tableCaptionFlag) {
tableCaptionBuffer.append(text);
} else if (headerFlag || bufferFlag) {
Expand All @@ -695,6 +698,9 @@ public void text(String text, SinkEventAttributes attributes) {
} else {
content(text);
}
if (attributes != null) {
inline_();
}
}

@Override
Expand Down

0 comments on commit f9b57b2

Please sign in to comment.