renamed crossReference -> crossReferenceAnchor and crossReferenceTitle -> crossReference as it's the default behavior

introduced addFilenameExtension (e.g. needed for inter-document cross-references)
fixed anchor normalization (support for ASCII characters in AsciiDoc)
Several workarounds with inter-document cross-references
Removed documentTitleWithAttributes as it's no use as-is
This commit is contained in:
Hugo de Paix de Coeur
2016-02-10 12:13:32 +01:00
parent 5b5a58ee7f
commit 337c8ba403
8 changed files with 105 additions and 82 deletions

View File

@@ -75,11 +75,11 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor", "text").newLine()
.anchor(" \u0240 & This | There .:/-_# ").newLine()
.anchor(" \u0240 µ&|ù This .:/-_# ").newLine()
.crossReferenceAnchor("./document.adoc", "anchor", "text").newLine()
.crossReferenceAnchor(" \u0240 µ&|ù This .:/-_ ").newLine()
.crossReference("./document.adoc", "anchor", "text").newLine()
.crossReference(" \u0240 & This | There .:/-_ ").newLine()
.crossReferenceTitle("./document.adoc", "anchor", "text").newLine()
.crossReferenceTitle(" \u0240 & This | There .:/-_ ").newLine()
.crossReference(" \u0240 µ&|ù This .:/-_ ").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}
@@ -104,11 +104,11 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor", "text").newLine()
.anchor(" \u0240 & This | There .:/-_# ").newLine()
.anchor(" \u0240 µ&|ù This .:/-_# ").newLine()
.crossReferenceAnchor("./document.adoc", "anchor", "text").newLine()
.crossReferenceAnchor(" \u0240 µ&|ù This .:/-_ ").newLine()
.crossReference("./document.adoc", "anchor", "text").newLine()
.crossReference(" \u0240 & This | There .:/-_ ").newLine()
.crossReferenceTitle("./document.adoc", "anchor", "text").newLine()
.crossReferenceTitle(" \u0240 & This | There .:/-_ ").newLine()
.crossReference(" \u0240 µ&|ù This .:/-_ ").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}