[Uml-devel] [Bug 126480] Comments are cut short when generating PHP code
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Apr 30 08:14:02 UTC 2006
------- 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=126480
okellogg users sourceforge net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From okellogg users sourceforge net 2006-04-30 17:13 -------
SVN commit 535830 by okellogg:
formatDoc(): Append remaining input line to `output' in the loop for splitting
up long lines. Note that this fix applies not only to the PHPWriter but to
all "old" code generators.
BUG:126480
M +1 -0 ChangeLog
M +4 -2 umbrello/codegenerator.cpp
--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #535829:535830
@ -11,6 +11,7 @
* Memory problem when importing classes from c++ sources (122668)
* Nestable components and subsystems in Component diagram (124326)
* User interaction with UMLWidget improvements (126391)
+* Comments are cut short when generating PHP code (126480)
Version 1.5.2
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerator.cpp #535829:535830
@ -684,9 +684,11 @
}
int index;
do {
- index = input.findRev(" ", lineWidth + 1);
- if (index == -1)
+ index = input.findRev(" ", lineWidth);
+ if (index == -1) {
+ output += linePrefix + input + endLine;
break;
+ }
output += linePrefix + input.left(index) + endLine; // add line
input.remove(0, index + 1); //and remove processed string, including
// white space
More information about the umbrello-devel
mailing list