Skip to content

Commit

Permalink
dev: fix formatting
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c7c68b)
  • Loading branch information
cbasguti authored and flavorjones committed Jul 5, 2023
1 parent 8cd7bff commit c0c1ee0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ext/java/nokogiri/internals/SaveContextVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,9 @@ public int compare(Attr attr0, Attr attr1) {
// no-op
}

private boolean isHtmlScript(Text text) {
private boolean
isHtmlScript(Text text)
{
Node parentNode = text.getParentNode();
if (parentNode != null && parentNode.getNodeName().equals("script")) {
return htmlDoc;
Expand All @@ -816,8 +818,10 @@ private boolean isHtmlScript(Text text) {
return false;
}
}

private boolean isHtmlStyle(Text text) {

private boolean
isHtmlStyle(Text text)
{
Node parentNode = text.getParentNode();
if (parentNode != null && parentNode.getNodeName().equals("style")) {
return htmlDoc;
Expand All @@ -826,7 +830,7 @@ private boolean isHtmlStyle(Text text) {
return false;
}
}


public boolean
enter(Text text)
Expand Down

0 comments on commit c0c1ee0

Please sign in to comment.