Skip to content

Commit

Permalink
fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Dec 16, 2023
1 parent 610c5f9 commit ce58dfd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import org.apache.maven.doxia.macro.MacroExecutionException;
import org.apache.maven.doxia.macro.MacroRequest;
import org.apache.maven.doxia.markup.Markup;
import org.apache.maven.doxia.parser.AbstractParserTest;
import org.apache.maven.doxia.parser.ParseException;
import org.apache.maven.doxia.parser.Xhtml5BaseParser;
Expand Down Expand Up @@ -198,7 +199,7 @@ public void testGenerateAnchors() throws ParseException, MacroExecutionException
parser.addSinkWrapperFactory(new CreateAnchorsForIndexEntriesFactory());
parser.parse(sourceContent, sink2);
assertEquals(
"<section><a id=\"" + actualLinkTarget.substring(1) + "\"></a>\n" + "<h1>1 Headline</h1>",
"<section><a id=\"" + actualLinkTarget.substring(1) + "\"></a>" + Markup.EOL + "<h1>1 Headline</h1>",
out.toString());
}
}

0 comments on commit ce58dfd

Please sign in to comment.