Bug 62374 - paragraph formatting broken
Summary: paragraph formatting broken
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: vim
Version: 7.3
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: wdovlrrw
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-30 19:04 UTC by Chris Ricker
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-05-10 17:44:00 UTC
Embargoed:


Attachments (Terms of Use)
example paragraphs (2.35 KB, text/plain)
2002-03-30 19:07 UTC, Chris Ricker
no flags Details
example paragraphs after beta vim malformatted them (2.37 KB, text/plain)
2002-03-30 19:08 UTC, Chris Ricker
no flags Details

Description Chris Ricker 2002-03-30 19:04:01 UTC
the vim 6.1-1 rpms are installed

Paragraph formatting (meaning the command "gq}" to reformat an entire paragraph)
is behaving very weirdly with the vim in the betas.  Sometimes, reformatting an
entire paragraph will result in lines towards the end of the paragraph being
indented.

What it appears to be breaking on are lines ending with a comma.  When a
reformat shifts a line so that the physical line ends with a comma, all
subsequent lines in that paragraph are indented.

This is not how paragraph format has worked on any other vi / vim I've used, and
it's not what happens with the exact same paragraphs on 7.2.

Comment 1 Chris Ricker 2002-03-30 19:07:51 UTC
Created attachment 51465 [details]
example paragraphs

Comment 2 Chris Ricker 2002-03-30 19:08:50 UTC
Created attachment 51466 [details]
example paragraphs after beta vim malformatted them

Comment 3 Chris Ricker 2002-03-30 19:12:54 UTC
I've attached two files, foo.txt and foo-beta.txt.  They both contain the same
three paragraphs (all alphabetical characters substituted with an "a" since the
text is unfortunately confidential).  foo.txt is what the file looks like before
and after "gq}" processing using vim on a RH 7.2 box.  foo-beta.txt is what
foo.txt looks like after "gq}" processing using vim-6.1-1 on beta3.

This bug did not arise with 6.1-1; I've been noticing it for a few days now.  It
does seem to be exclusively associated w/ lines ending in commas.

Comment 4 Chris Ricker 2002-04-05 06:37:18 UTC
still broken in beta4

Comment 5 Chris Ricker 2002-05-05 15:46:24 UTC
Still broken in 7.3 gold

Comment 6 Karsten Hopp 2002-07-09 09:54:36 UTC
It's fixed in the rawhide version.


Note You need to log in before you can comment on or make changes to this bug.