Plain text editing generates extra breaks

Bug #1291093 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Low
David Mathog

Bug Description

1. multi-line text modified using the Text and Font dialog some operations result in extra "\n" symbols in the plain text representation, breaking lines that should not break.

2. The plain text representation contains two "\n" symbols per expected line break.

To see the first problem.

1. start inkscape
2. enter some multine line text ("one\ntwo\nthree")
3. shift-control T to open the Text and Font dialog
4. Using the text select tool select the "w" in two and change it to italics

Result, the text preview picks up an extra EOL character. In the Text and Font dialog each time that happened the dialog became taller.

To see the second problem just examine the text in the preview window, the spacing is, for the preceding example:
"one\n\ntwo\n\nthree". This had the effect of making the Text and Font dialog much taller than it needed to be.

The attached patch resolves both issues.

Tags: text
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

The patch changes_2014_03_11b_texteditonly.patch is also included in the patch changes_2014_03_11b_textdecorateonly.patch for bug #1269206

Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.4 r9939, r10015, 0.48+devel r10785 and r13135 (latest) on OS X 10.7.5.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
tags: added: text
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → David Mathog (mathog)
status: Confirmed → In Progress
Revision history for this message
David Mathog (mathog) wrote :

Note, tested on both Linux and Windows XP.

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Closing as part of bug migration (http://alpha.inkscape.org/bug-migration/)

Issue still being tracked in https://gitlab.com/inkscape/inkscape/-/issues/1161

Changed in inkscape:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.