Fixed anchor normalization

This commit is contained in:
Hugo de Paix de Coeur
2016-02-03 19:15:33 +01:00
parent ff085c43f7
commit ded602de20
3 changed files with 9 additions and 10 deletions

View File

@@ -75,10 +75,10 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor").newLine()
.anchor("\u0240 & this | there").newLine()
.anchor(" \u0240 & This | There ").newLine()
.crossReference("anchor").newLine()
.crossReference("anchor", "text").newLine()
.crossReference("\u0240 & this | there").newLine()
.crossReference(" \u0240 & This | There ").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}
@@ -103,10 +103,10 @@ public class MarkupDocBuilderTest {
.italicTextLine("Italic text line b")
.unorderedList(Arrays.asList("Entry1", "Entry2", "Entry 2"))
.anchor("anchor").newLine()
.anchor("\u0240 & this | there").newLine()
.anchor(" \u0240 & This | There ").newLine()
.crossReference("anchor").newLine()
.crossReference("anchor", "text").newLine()
.crossReference("\u0240 & this | there").newLine()
.crossReference(" \u0240 & This | There ").newLine()
.writeToFile("build/tmp", "test", StandardCharsets.UTF_8);
}