@@ -84,24 +84,23 @@ reported are based on the strings extracted from the binaries, typically broken
8484as new lines with each NULL character.
8585
8686
87- How does ``--license-text`` for ScanCode works exactly?
87+ How does ``--license-text `` for ScanCode works exactly?
8888-------------------------------------------------------------
8989
90- I have a question about how ``--license-text`` for ScanCode works exactly:
91- Is the matched text that gets included into the result exactly the lines of text
92- from the input file that are covered by the ``start_line`` and ``end_line``
90+ Is the matched text that gets included into the result exactly the lines of text
91+ from the input file that are covered by the ``start_line `` and ``end_line ``
9392fields of the result? I.e., if I would post-process the input file and extract
94- ``start_line`` to ``end_line`` from it, would I get exactly the ``matched_text ``
93+ ``start_line `` to ``end_line `` from it, would I get exactly the ``matched_text ``
9594contents? Or is there some more "magic" involved when populating the
96- ``matched_text`` field?
95+ ``matched_text `` field?
9796
9897ScanCode is a bit smarter than just start and end line, as matching is based on
99- words, not lines of the actual scanned text.
100- And a whole line may not always be matched.
98+ words, not lines of the actual scanned text. And a whole line may not always be matched.
10199
102100For instance with this command::
103101
104- $ echo "Foo is a wonder piece of code. Licensed under the GPL. For support contact [email protected] " > tst 102+ $ echo "Foo is a wonder piece of code. Licensed under the GPL. " \
103+ "For support contact [email protected] " > tst 105104 $ scancode --license --license-text --license-text-diagnostics --yaml - tst
106105 ...
107106 license_detections:
@@ -128,16 +127,8 @@ For instance with this command::
128127then:
129128
130129- ``matched_text `` is based on ``start_line `` and ``end_line ``
131- - ``matched_text_diagnostics `` is based on the exact matched words (and it includes "tagged" gaps or extra)
132-
133-
134-
135-
136-
137-
138-
139-
140-
141-
130+ - ``matched_text_diagnostics `` is based on the exact matched words
142131
132+ Note that ``matched_text_diagnostics `` also includes "tagged" gaps or extra
133+ unmatched words highlighted between the matched words.
143134
0 commit comments