Bug 116113 - change max line length to 75 or 80 chars in predefined headings
Summary: change max line length to 75 or 80 chars in predefined headings
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 06:11 UTC by Haeber
Modified: 2020-08-27 11:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haeber 2005-11-11 06:11:31 UTC
Version:           1.4.92 (using KDE 3.4.92 (beta2, >= 20051010) Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

Line length of predefined headings shouldn't be higher than 80 characters (for better/easier view/edit in console-/terminal-programms like vi, emacs).

Currently to long line (ca. at line 20):
 directory. If you name the file something else, it must be the only one with that
is longer than 80 chars (84), please reduce it to 80.

I know that I could change it manually by myself as root in the opt/kde3/share/app/umbrello/-folder, but to change it per default in umbrello source code is the best solution.

Off topic:
Maybe there could be an global option to adjust the line length of the created source code files.

Best regards
Thomas
Comment 1 Anonymous bin ich 2018-01-31 08:30:12 UTC
I think a better solution is to simply provide access to a code formatter as a hook, similar to git pre-commit hook. Umbrello should only focus on generating code that can be compiled, and outsource the job of correct formatting to external dedicated tool such as uncrustify.
Comment 2 Ralf Habacker 2019-12-25 23:46:54 UTC
A tab could be added to the code generator options dialog with post-processing option. This could contain an input field and a browse button to specify an external script which is called after the code export and receives the generated files via standard input.