Skip to content

Commit

Permalink
CSS parsing refactored, metanorma/metanorma-ogc#478
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Dec 17, 2022
1 parent 51b21f4 commit f631e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/metanorma/fop/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,9 @@ public static Node parseCSS(String cssString) {
for (int s = 0; s < selectorList.getLength(); s++) {
String selectorText = selectorList.item(s).toString();
if (selectorText.contains(".")) {
selectorText = selectorText.substring(selectorText.indexOf(".") + 1).trim();
selectorText = selectorText.substring(selectorText.lastIndexOf(".") + 1).trim();
} else if (selectorText.contains(" ")) {
selectorText = selectorText.substring(selectorText.indexOf(" ") + 1).trim();
selectorText = selectorText.substring(selectorText.lastIndexOf(" ") + 1).trim();
}
//selectorText = selectorText.replaceAll("sourcecode \\.","");
//System.out.println("selector: " + selectorText);
Expand Down

0 comments on commit f631e38

Please sign in to comment.