Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ca825d2a
Commit
ca825d2a
authored
Jul 21, 2009
by
Henrik Abelsson
Committed by
Thorbjørn Lindeijer
Jul 21, 2009
Browse files
Fixed the rewrapping not to leave around trailing spaces
Reviewed-by: Thorbjørn Lindeijer
parent
eccc840c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
ca825d2a
...
...
@@ -3953,6 +3953,7 @@ void BaseTextEditor::rewrapParagraph()
if
(
currentLength
>
paragraphWidth
)
{
currentLength
=
currentWord
.
length
()
+
1
+
indentLevel
;
result
.
chop
(
1
);
// remove trailing space
result
.
append
(
QChar
::
ParagraphSeparator
);
result
.
append
(
spacing
);
}
...
...
@@ -3967,6 +3968,7 @@ void BaseTextEditor::rewrapParagraph()
currentWord
.
append
(
ch
);
}
result
.
chop
(
1
);
result
.
append
(
QChar
::
ParagraphSeparator
);
cursor
.
insertText
(
result
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment