[Uml-devel] [Bug 145918] New: Python code generator does not wrap lines properly
Ben Hearsum
bhearsum at wittydomain.com
Thu May 24 20:23:29 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=145918
Summary: Python code generator does not wrap lines properly
Product: umbrello
Version: unspecified
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: umbrello-devel.kde.org
ReportedBy: bhearsum wittydomain com
Version: svn (using KDE KDE 3.5.6)
Installed from: Ubuntu Packages
OS: Linux
When generating code in Python no line wrapping is done. I have many comments that are over 300 characters long which exist on a single line. Generation with C++ yields better (but not perfect) line breaking.
Sample output in Python:
"""
Adds the CSS declaration 'declaration' to the selector specified by 'selector'. If the key specified in 'selector' already exists in 'self.rules' the given declaration is added to it. If 'selector' does not exist it will be added. If the specified property in the declaration already exists, it's value will be overridden to ensure that no duplicates exist. No checks are done to see if the keys/values are applicable to the selector.
param string selector : The CSS selector. Examples include "body", "table#myID".
param string declaration : A single declaration, colon seperated declaration block. Examples include "list-style-type: none", "color: red".
return :
author
"""
Sample output in C++:
/**
* Adds the CSS declaration 'declaration' to the selector specified by 'selector'.
* If the key specified in 'selector' already exists in 'self.rules' the given
* declaration is added to it. If 'selector' does not exist it will be added. If
* the specified property in the declaration already exists, it's value will be
* overridden to ensure that no duplicates exist. No checks are done to see if the
* keys/values are applicable to the selector.
* param selector The CSS selector. Examples include "body", "table#myID".
* param declaration A single declaration, colon seperated declaration block.
* Examples include "list-style-type: none", "color: red".
*/
More information about the umbrello-devel
mailing list