-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force white background in parser-doxia-module tables (#974)
* This prevents other colors from leaking into white rows. For example when the table is in an example block. * Refactor some test * Correct use of swing constants by String for styles Fixes #948
- Loading branch information
1 parent
f9c8e67
commit f18c942
Showing
9 changed files
with
69 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
...xia-module/src/main/java/org/asciidoctor/maven/site/parser/processors/SinkAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package org.asciidoctor.maven.site.parser.processors; | ||
|
||
import javax.swing.text.html.HTML.Attribute; | ||
|
||
import org.apache.maven.doxia.sink.SinkEventAttributes; | ||
import org.apache.maven.doxia.sink.impl.SinkEventAttributeSet; | ||
|
||
class SinkAttributes { | ||
|
||
static SinkEventAttributes of(Attribute name, String value) { | ||
static SinkEventAttributes of(String name, String value) { | ||
final var attributes = new SinkEventAttributeSet(); | ||
attributes.addAttribute(name, value); | ||
return attributes; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters