[Bug 251025] New: [REGRESSION] kompare: setting tabwidth to anything < 4 shows only the first level of indentation

esigra at gmail.com esigra at gmail.com
Sun Sep 12 22:50:18 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=251025

           Summary: [REGRESSION] kompare: setting tabwidth to anything < 4
                    shows only the first level of indentation
           Product: kompare
           Version: 4.0.0
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: viewpart
        AssignedTo: kompare-devel at kde.org
        ReportedBy: esigra at gmail.com


Version:           4.0.0 (using KDE 4.5.1) 
OS:                Linux

When the tabwidth is set to any value < 4, lines with > 1 level of indentation
are shown with only 1 level of indentation. Therefore only lines with 0 or 1
level of indentation are shown correctly. It seems to work with tab widths >=
4.

Reproducible: Always

Steps to Reproduce:
1. Start Konsole.
2. Create a directory and cd into it.
3. Create the empty file empty.cc
4. Create the file prov.cc with some content like this:
float calculate_something(float const a, float const b, float const c) {
   return
      calculate_something(1.7, calculate_something(8.9, 19.51, 33.0), a) +
      calculate_something(c, 18.8, calculate_something(7.5, b, a));
}
5. Execute "diff -u empty.cc prov.cc|kompare -".
6. Open the settings dialog and change the tab width to 3.
7. Press Ok.

Actual Results:  
float calculate_something(float const a, float const b, float const c) {
   return
   calculate_something(1.7, calculate_something(8.9, 19.51, 33.0), a) +
   calculate_something(c, 18.8, calculate_something(7.5, b, a));
}

Expected Results:  
float calculate_something(float const a, float const b, float const c) {
   return
      calculate_something(1.7, calculate_something(8.9, 19.51, 33.0), a) +
      calculate_something(c, 18.8, calculate_something(7.5, b, a));
}

This problem is new in KDE4.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kompare-devel mailing list