This file is indexed.

/usr/share/doc/diffutils-doc/Adjusting-Output.html is in diffutils-doc 1:3.5-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Diffutils
(version 3.5, 4 August 2016),
and documents the GNU diff, diff3,
sdiff, and cmp commands for showing the
differences between files and the GNU patch command for
using their output to update files.

Copyright (C) 1992-1994, 1998, 2001-2002, 2004, 2006, 2009-2016 Free
Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled
"GNU Free Documentation License." -->
<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Comparing and Merging Files: Adjusting Output</title>

<meta name="description" content="Comparing and Merging Files: Adjusting Output">
<meta name="keywords" content="Comparing and Merging Files: Adjusting Output">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Index.html#Index" rel="index" title="Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html#Top" rel="up" title="Top">
<link href="diff-Performance.html#diff-Performance" rel="next" title="diff Performance">
<link href="Comparing-Directories.html#Comparing-Directories" rel="prev" title="Comparing Directories">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Adjusting-Output"></a>
<div class="header">
<p>
Next: <a href="diff-Performance.html#diff-Performance" accesskey="n" rel="next">diff Performance</a>, Previous: <a href="Comparing-Directories.html#Comparing-Directories" accesskey="p" rel="prev">Comparing Directories</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Making-diff-Output-Prettier"></a>
<h2 class="chapter">5 Making <code>diff</code> Output Prettier</h2>

<p><code>diff</code> provides several ways to adjust the appearance of its output.
These adjustments can be applied to any output format.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">&bull; <a href="#Tabs" accesskey="1">Tabs</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Preserving the alignment of tab stops.
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#Trailing-Blanks" accesskey="2">Trailing Blanks</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Suppressing blanks before empty output lines.
</td></tr>
<tr><td align="left" valign="top">&bull; <a href="#Pagination" accesskey="3">Pagination</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Page numbering and time-stamping <code>diff</code> output.
</td></tr>
</table>

<hr>
<a name="Tabs"></a>
<div class="header">
<p>
Next: <a href="#Trailing-Blanks" accesskey="n" rel="next">Trailing Blanks</a>, Up: <a href="#Adjusting-Output" accesskey="u" rel="up">Adjusting Output</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Preserving-Tab-Stop-Alignment"></a>
<h3 class="section">5.1 Preserving Tab Stop Alignment</h3>
<a name="index-tab-stop-alignment"></a>
<a name="index-aligning-tab-stops"></a>

<p>The lines of text in some of the <code>diff</code> output formats are
preceded by one or two characters that indicate whether the text is
inserted, deleted, or changed.  The addition of those characters can
cause tabs to move to the next tab stop, throwing off the alignment of
columns in the line.  <acronym>GNU</acronym> <code>diff</code> provides two ways
to make tab-aligned columns line up correctly.
</p>
<p>The first way is to have <code>diff</code> convert all tabs into the correct
number of spaces before outputting them; select this method with the
<samp>--expand-tabs</samp> (<samp>-t</samp>) option.  To use this form of output with
<code>patch</code>, you must give <code>patch</code> the <samp>-l</samp> or
<samp>--ignore-white-space</samp> option (see <a href="Merging-with-patch.html#Changed-White-Space">Changed White Space</a>, for more
information).  <code>diff</code> normally assumes that tab stops are set
every 8 print columns, but this can be altered by the
<samp>--tabsize=<var>columns</var></samp> option.
</p>
<p>The other method for making tabs line up correctly is to add a tab
character instead of a space after the indicator character at the
beginning of the line.  This ensures that all following tab characters
are in the same position relative to tab stops that they were in the
original files, so that the output is aligned correctly.  Its
disadvantage is that it can make long lines too long to fit on one line
of the screen or the paper.  It also does not work with the unified
output format, which does not have a space character after the change
type indicator character.  Select this method with the <samp>-T</samp> or
<samp>--initial-tab</samp> option.
</p>
<hr>
<a name="Trailing-Blanks"></a>
<div class="header">
<p>
Next: <a href="#Pagination" accesskey="n" rel="next">Pagination</a>, Previous: <a href="#Tabs" accesskey="p" rel="prev">Tabs</a>, Up: <a href="#Adjusting-Output" accesskey="u" rel="up">Adjusting Output</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Omitting-trailing-blanks"></a>
<h3 class="section">5.2 Omitting trailing blanks</h3>
<a name="index-trailing-blanks"></a>
<p>When outputting lines in normal or context format, or outputting an
unchanged line in unified format, <code>diff</code> normally outputs a
blank just before each line.  If the line is empty, the output of
<code>diff</code> therefore contains trailing blanks even though the
input does not contain them.  For example, when outputting an
unchanged empty line in context format, <code>diff</code> normally
outputs a line with two leading spaces.
</p>
<p>Some text editors and email agents routinely delete trailing blanks,
so it can be a problem to deal with diff output files that contain
them.  You can avoid this problem with the
<samp>--suppress-blank-empty</samp> option.  It causes <code>diff</code> to
omit trailing blanks at the end of output lines in normal, context,
and unified format, unless the trailing blanks were already present in
the input.  This changes the output format slightly, so that output
lines are guaranteed to never end in a blank unless an input line ends
in a blank.  This format is less likely to be munged by text editors
or by transmission via email.  It is accepted by <acronym>GNU</acronym>
<code>patch</code> as well.
</p>
<hr>
<a name="Pagination"></a>
<div class="header">
<p>
Previous: <a href="#Trailing-Blanks" accesskey="p" rel="prev">Trailing Blanks</a>, Up: <a href="#Adjusting-Output" accesskey="u" rel="up">Adjusting Output</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Paginating-diff-Output"></a>
<h3 class="section">5.3 Paginating <code>diff</code> Output</h3>
<a name="index-paginating-diff-output"></a>

<p>It can be convenient to have long output page-numbered and time-stamped.
The <samp>--paginate</samp> (<samp>-l</samp>) option does this by sending the
<code>diff</code> output through the <code>pr</code> program.  Here is what the page
header might look like for &lsquo;<samp>diff -lc lao tzu</samp>&rsquo;:
</p>
<div class="example">
<pre class="example">2002-02-22 14:20                 diff -lc lao tzu                 Page 1
</pre></div>

<hr>
<div class="header">
<p>
Previous: <a href="#Trailing-Blanks" accesskey="p" rel="prev">Trailing Blanks</a>, Up: <a href="#Adjusting-Output" accesskey="u" rel="up">Adjusting Output</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>