From e69a56875cc44b20baf092baa6dcc8d84db142fe Mon Sep 17 00:00:00 2001 From: Martin Ledvinka Date: Sun, 3 Nov 2024 11:16:09 +0100 Subject: [PATCH] [Bug #275] Use consistent line-endings throughout project. --- .gitattributes | 5 +++++ .../document/html/HtmlTermOccurrenceResolverTest.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5e21d85e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text = auto +*.java text diff=java +*.png binary +*.jpg binary +*.xlsx binary diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java index 22d90e1b..f17c7279 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java @@ -183,7 +183,7 @@ void findTermOccurrencesSetsFoundOccurrencesAsApprovedWhenCorrespondingExistingO final File file = initFile(); final TermOccurrence existing = Generator.generateTermOccurrence(new Term(TERM_URI), file, false); final Selector quoteSelector = new TextQuoteSelector("Územní plán", "RDFa simple", "hlavního města Prahy."); - final Selector posSelector = new TextPositionSelector(35, 46); + final Selector posSelector = new TextPositionSelector(29, 40); existing.getTarget().setSelectors(Set.of(quoteSelector, posSelector)); final InputStream is = cz.cvut.kbss.termit.environment.Environment.loadFile("data/rdfa-simple.html"); sut.parseContent(is, file);