-
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.
- Loading branch information
1 parent
5baa665
commit d487882
Showing
11 changed files
with
78 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,4 @@ else if (value instanceof Boolean) { | |
attributesBuilder.attribute(attribute, value); | ||
} | ||
} | ||
|
||
} |
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
15 changes: 8 additions & 7 deletions
15
...src/test/java/org/asciidoctor/maven/test/processors/ChangeAttributeValuePreprocessor.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,26 +1,27 @@ | ||
package org.asciidoctor.maven.test.processors; | ||
|
||
import java.util.Map; | ||
|
||
import org.asciidoctor.ast.Document; | ||
import org.asciidoctor.extension.Preprocessor; | ||
import org.asciidoctor.extension.PreprocessorReader; | ||
import org.asciidoctor.extension.Reader; | ||
|
||
import java.util.Map; | ||
|
||
public class ChangeAttributeValuePreprocessor extends Preprocessor { | ||
|
||
public static final String AUTHOR_NAME = "ThisIsMe"; | ||
|
||
public ChangeAttributeValuePreprocessor(Map<String, Object> config) { | ||
super(config); | ||
System.out.println(this.getClass().getSimpleName() + "(" | ||
System.out.println(this.getClass().getSimpleName() + "(" | ||
+ this.getClass().getSuperclass().getSimpleName() + ") initialized"); | ||
} | ||
|
||
@Override | ||
public void process(Document document, PreprocessorReader reader) { | ||
System.out.println("Processing "+ this.getClass().getSimpleName()); | ||
public Reader process(Document document, PreprocessorReader reader) { | ||
System.out.println("Processing " + this.getClass().getSimpleName()); | ||
System.out.println("Processing: blocks found: " + document.getBlocks().size()); | ||
document.getAttributes().put("author", AUTHOR_NAME); | ||
return reader; | ||
} | ||
|
||
} |
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
Oops, something went wrong.