From owner-freebsd-doc@FreeBSD.ORG Mon Oct 8 03:41:40 2007 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2298916A41B for ; Mon, 8 Oct 2007 03:41:40 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.179]) by mx1.freebsd.org (Postfix) with ESMTP id A3C6E13C465 for ; Mon, 8 Oct 2007 03:41:39 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.58.47] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1IejUt2Yki-0008Jm; Mon, 08 Oct 2007 05:41:36 +0200 From: Max Laier Organization: FreeBSD To: freebsd-doc@freebsd.org Date: Mon, 8 Oct 2007 05:41:26 +0200 User-Agent: KMail/1.9.7 References: <20071007231017.1a29bec8@chessgriffin.com> In-Reply-To: <20071007231017.1a29bec8@chessgriffin.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4243409.gHYmf1S2Wy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200710080541.34050.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+J0pc6qliCQonpqsCyW2XMRYplJCUXlDylBt0 xrF/sc9zSlCaByYvQ6teb+zs/0C2t0FISHR7WuCGblEmabMH3E 6bhO+WDHm+Xij5AM7O7Rb4wQBm4PvmFPaEA2TjGrVg= Cc: Chess Griffin Subject: Re: Two space indentation displays incorrectly in diff X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2007 03:41:40 -0000 --nextPart4243409.gHYmf1S2Wy Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 08 October 2007, Chess Griffin wrote: > Hello, > > I am working on some more doc diffs to submit and I am paying careful > attention to the FDP Primer. The problem is that when I insert a > two space indent after the first line of a , it shows up as 1 > space when I create the diff -u. > > This is in my .vimrc: > > autocmd BufNewFile,BufRead *.sgml,*.ent,*.html,*.tex,*.xsl set > autoindent formatoptions=3Dtcq2l textwidth=3D70 shiftwidth=3D2 > softtabstop=3D2 tabstop=3D8 > > When I edit the sgml, it looks ok: > > > Changing Console Video Modes > > The FreeBSD console default video mode may be adjusted to > 1024x768, 1280x1024, or any other size supported by your > graphics chip and monitor. To use a different video mode, you > must first recompile your kernel and include two additional > options: > > But in the diff it looks like this: > > + > + Changing Console Video Modes > + > + The FreeBSD console default video mode may be adjusted to > + 1024x768, 1280x1024, or any other size supported by your > + graphics chip and monitor. To use a different video mode, you > + must first recompile your kernel and include two additional > + options: > > It appears that there is only a one space indent after the first > line. > > I also did ":set list" on the diff and it looks like this: > > + $ > + Changing Console Video Modes$ > +$ > + The FreeBSD console default video mode may be adjusted to$ > +^I1024x768, 1280x1024, or any other size supported by your$ > +^Igraphics chip and monitor. To use a different video mode, you$ > +^Imust first recompile your kernel and include two additional$ > +^Ioptions:$ > > I am stumped as to why this occurs or how to fix it. Obviously vim in converting the 8 spaces into one tab. When displayed=20 this turns into "indentation to the first tabstop (=3D8)" which means only= =20 and indentation of 7 is visible (deducting the plus sign). I don't know how to teach vim not to do the conversion and I don't know if= =20 that might even be the right formatting, but I hope this helps. > When the diff is applied to the original source, it comes > out fine, so maybe it's ok? > > Any advice from expert vimmers would be greatly appreciated. > > Thank you. > Chess =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart4243409.gHYmf1S2Wy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHCabtXyyEoT62BG0RAtVtAJ4zwwYPOA0wmzsQ7jMy+Aipv0OpeACfX98t rdIEc5prqWiefL/81tFBtS0= =bxLE -----END PGP SIGNATURE----- --nextPart4243409.gHYmf1S2Wy--