Skip to content

Commit

Permalink
Improve style attribute regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarbenalla committed Jul 16, 2024
1 parent 8feabc8 commit c48bb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/jdk/src/classes/build/tools/fixuppandoc/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ void write(PrintWriter out) {
index++;
}
boolean updateEndTd = false;
Pattern styleAttr = Pattern.compile("(?<before>.*style=\")(?<style>[^\"]*)(?<after>\".*)");
Pattern styleAttr = Pattern.compile("(?s)(?<before>.*style=\")(?<style>[^\"]*)(?<after>\".*)");
for (Entry e : entries) {
if (simple && e.column == maxIndex) {
String attrs = e.html.substring(3, e.html.length() - 1);
Expand Down

0 comments on commit c48bb0c

Please sign in to comment.