Skip to content

Commit cfc874f

Browse files
authored
Trailing whitespace cleanup for XML files (#1236)
General find and replace clean up
1 parent 1c377e8 commit cfc874f

16 files changed

Lines changed: 92 additions & 92 deletions

lib/NUnit/NUnit.ConsoleRunner.3.5.0/tools/nunit.engine.api.xml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Lucene.Net.Tests.QueryParser/Xml/BooleanFilter.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<Query>
2020
<MatchAllDocsQuery/>
2121
</Query>
22-
22+
2323
<Filter>
2424
<!--
2525
This query illustrates how a BooleanFilter can be used to combine
@@ -31,11 +31,11 @@
3131
<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
3232
</Clause>
3333
<Clause occurs="mustNot">
34-
<TermsFilter fieldName="contents">Emcore</TermsFilter>
34+
<TermsFilter fieldName="contents">Emcore</TermsFilter>
3535
</Clause>
3636
</BooleanFilter>
37-
37+
3838
</Filter>
39-
39+
4040
</FilteredQuery>
4141

src/Lucene.Net.Tests.QueryParser/Xml/BoostingQuery.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<Clause occurs="must">
2626
<TermQuery>bank</TermQuery>
2727
</Clause>
28-
</BooleanQuery>
28+
</BooleanQuery>
2929
</Query>
3030
<BoostQuery boost="0.01">
3131
<UserQuery>"world bank"</UserQuery>

src/Lucene.Net.Tests.QueryParser/Xml/CachedFilter.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@
2222
<TermQuery>merger</TermQuery>
2323
</Clause>
2424
<Clause occurs="mustnot">
25-
<TermQuery >sumitomo</TermQuery>
25+
<TermQuery >sumitomo</TermQuery>
2626
</Clause>
2727
</BooleanQuery>
2828
</Query>
29-
29+
3030
<Filter>
3131
<!--
32-
CachedFilter elements can contain any Query or Filter.
33-
CachedFilters are cached in an LRU Cache keyed on the contained query/filter object.
34-
Using this will speed up overall performance for repeated uses of the same expensive
35-
query/filter. The sorts of queries likely to benefit from caching need not necessarily be
32+
CachedFilter elements can contain any Query or Filter.
33+
CachedFilters are cached in an LRU Cache keyed on the contained query/filter object.
34+
Using this will speed up overall performance for repeated uses of the same expensive
35+
query/filter. The sorts of queries likely to benefit from caching need not necessarily be
3636
complex - e.g. simple TermQuerys with a large DF (document frequency) can be expensive
37-
on large indexes. A good example of this might be a term query on a field with only 2 possible
38-
values - "true" or "false". In a large index, querying or filtering on this field requires
39-
reading millions of document ids from disk which can more usefully be cached as a
37+
on large indexes. A good example of this might be a term query on a field with only 2 possible
38+
values - "true" or "false". In a large index, querying or filtering on this field requires
39+
reading millions of document ids from disk which can more usefully be cached as a
4040
QueryFilter bitset.
41-
41+
4242
For Queries/Filters to be cached and reused the object must implement hashcode and
4343
equals methods correctly so that duplicate queries/filters can be detected in the cache.
44-
44+
4545
The CoreParser.maxNumCachedFilters property can be used to control the size
4646
of the LRU Cache established during the construction of CoreParser instances.
4747
-->
4848
<CachedFilter>
4949
<!-- Example query to be cached for fast, repeated use -->
50-
<TermQuery fieldName="contents">bank</TermQuery>
50+
<TermQuery fieldName="contents">bank</TermQuery>
5151
<!-- Alternatively, a filter object can be cached ....
5252
<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
53-
-->
53+
-->
5454
</CachedFilter>
5555
</Filter>
56-
56+
5757
</FilteredQuery>

src/Lucene.Net.Tests.QueryParser/Xml/DuplicateFilterQuery.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<TermQuery fieldName="date">19870408</TermQuery>
2626
</Clause>
2727
</BooleanQuery>
28-
</Query>
28+
</Query>
2929
<Filter>
3030
<!-- Filters to last document with this date -->
3131
<DuplicateFilter fieldName="date" keepMode="last"/>
3232
</Filter>
33-
33+
3434
</FilteredQuery>

src/Lucene.Net.Tests.QueryParser/Xml/FuzzyLikeThisQuery.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
<FuzzyLikeThisQuery>
1919
<!-- Matches on misspelt "Sumitomo" bank -->
2020
<Field fieldName="contents">
21-
Sumitimo bank
21+
Sumitimo bank
2222
</Field>
2323
</FuzzyLikeThisQuery>

src/Lucene.Net.Tests.QueryParser/Xml/LikeThisQuery.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
limitations under the License.
1717
-->
1818
<LikeThisQuery percentTermsToMatch="5" stopWords="Reuter" minDocFreq="2">
19-
IRAQI TROOPS REPORTED PUSHING BACK IRANIANS Iraq said today its troops were pushing Iranian forces out of
20-
positions they had initially occupied when they launched a new offensive near the southern port of
21-
Basra early yesterday. A High Command communique said Iraqi troops had won a significant victory
22-
and were continuing to advance. Iraq said it had foiled a three-pronged thrust some 10 km
23-
(six miles) from Basra, but admitted the Iranians had occupied ground held by the Mohammed al-Qassem
24-
unit, one of three divisions attacked. The communique said Iranian Revolutionary Guards were under
25-
assault from warplanes, helicopter gunships, heavy artillery and tanks. "Our forces are continuing
26-
their advance until they purge the last foothold" occupied by the Iranians, it said.
27-
(Iran said its troops had killed or wounded more than 4,000 Iraqis and were stabilising their new positions.)
28-
The Baghdad communique said Iraqi planes also destroyed oil installations at Iran's southwestern Ahvaz field
29-
during a raid today. It denied an Iranian report that an Iraqi jet was shot down.
30-
Iraq also reported a naval battle at the northern tip of the Gulf. Iraqi naval units and forces defending an
31-
offshore terminal sank six Iranian out of 28 Iranian boats attempting to attack an offshore terminal,
19+
IRAQI TROOPS REPORTED PUSHING BACK IRANIANS Iraq said today its troops were pushing Iranian forces out of
20+
positions they had initially occupied when they launched a new offensive near the southern port of
21+
Basra early yesterday. A High Command communique said Iraqi troops had won a significant victory
22+
and were continuing to advance. Iraq said it had foiled a three-pronged thrust some 10 km
23+
(six miles) from Basra, but admitted the Iranians had occupied ground held by the Mohammed al-Qassem
24+
unit, one of three divisions attacked. The communique said Iranian Revolutionary Guards were under
25+
assault from warplanes, helicopter gunships, heavy artillery and tanks. "Our forces are continuing
26+
their advance until they purge the last foothold" occupied by the Iranians, it said.
27+
(Iran said its troops had killed or wounded more than 4,000 Iraqis and were stabilising their new positions.)
28+
The Baghdad communique said Iraqi planes also destroyed oil installations at Iran's southwestern Ahvaz field
29+
during a raid today. It denied an Iranian report that an Iraqi jet was shot down.
30+
Iraq also reported a naval battle at the northern tip of the Gulf. Iraqi naval units and forces defending an
31+
offshore terminal sank six Iranian out of 28 Iranian boats attempting to attack an offshore terminal,
3232
the communique said. Reuter 3;
33-
</LikeThisQuery>
33+
</LikeThisQuery>

src/Lucene.Net.Tests.QueryParser/Xml/MatchAllDocsQuery.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<Query>
2020
<MatchAllDocsQuery/>
2121
</Query>
22-
22+
2323
<Filter>
2424
<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
2525
</Filter>
26-
26+
2727
</FilteredQuery>

src/Lucene.Net.Tests.QueryParser/Xml/NestedBooleanQuery.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
-->
1818
<!--
1919
This query was added to demonstrate nested boolean queries - there
20-
was a bug in the XML parser which added ALL child <Clause> tags to
20+
was a bug in the XML parser which added ALL child <Clause> tags to
2121
the top level tags ie. took child and grandchild elements instead
22-
of just child elements. This was due to the use of the
22+
of just child elements. This was due to the use of the
2323
Element.getElementsByTagName() call in BooleanQueryBuilder
24-
-->
25-
<BooleanQuery fieldName="contents">
24+
-->
25+
<BooleanQuery fieldName="contents">
2626
<Clause occurs="should">
2727
<BooleanQuery fieldName="contents">
2828
<Clause occurs="must">

src/Lucene.Net.Tests.QueryParser/Xml/NumericRangeFilterQuery.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
<TermQuery>merger</TermQuery>
2323
</Clause>
2424
<Clause occurs="mustnot">
25-
<TermQuery >sumitomo</TermQuery>
25+
<TermQuery >sumitomo</TermQuery>
2626
</Clause>
2727
<Clause occurs="must">
2828
<TermQuery>bank</TermQuery>
2929
</Clause>
3030
</BooleanQuery>
3131
</Query>
32-
32+
3333
<Filter>
3434
<NumericRangeFilter fieldName="date2" lowerTerm="19870409" upperTerm="19870412"/>
3535
</Filter>
36-
36+
3737
</FilteredQuery>

0 commit comments

Comments
 (0)