Skip to content

Commit

Permalink
Based on the new hyperlink styling option a new default CSS-class is
Browse files Browse the repository at this point in the history
required
  • Loading branch information
speckyspooky committed Aug 20, 2024
1 parent f83555c commit 6a1de86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void testInlineStyle() throws EngineException, IOException {

String regex = "<style type=\"text/css\">";
Matcher matcher = Pattern.compile(regex).matcher(content);
assertEquals(false, matcher.find());
assertEquals(true, matcher.find());

regex = "<div[^<>]*style=\"[^<>]*color: rgb(255, 0, 0)[^<>]*>aaaa</div>";
matcher = Pattern.compile(regex).matcher(content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void setTextProperty(String tag, TextStyle style) {
}
canvas.setBackgroundColor(style.getColor());
setTextFont(info.getFontName());
if (link.isHasHyperlinkDecoration()) {
if (link != null && link.isHasHyperlinkDecoration()) {
canvas.setHyperlink(link);
}
canvas.setBookmark(bmk_relationshipid);
Expand Down Expand Up @@ -424,7 +424,7 @@ private void startBlockText(int startX, int startY, int width, int height, Conta
writer.attribute("id", shapeId);
writer.attribute("name", "TextBox " + shapeId);
// hyperlink decoration at text area
if (!link.isHasHyperlinkDecoration()) {
if (link != null && !link.isHasHyperlinkDecoration()) {
canvas.setHyperlink(link);
}
writer.closeTag("p:cNvPr");
Expand Down

0 comments on commit 6a1de86

Please sign in to comment.