empty text is not cleaned up

Bug #1269603 reported by David Mathog
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

If text is created, and then later all of the text contents are selected and deleted, the SVG will contain an unselectable object with more or less this form:

<text (assorted stuff) /></text>

The document cleanup function does not remove these.

Two test files will be attached. The first is just 3 pieces of text inside a rectangle. The second is what happens when, using the text tool, the contents of each these text boxes is selected and deleted. Then "clean up document" was run, and the file saved.

By "unselectable" I mean that dragging a rectangle around the area, or using "select all", does not result in anything being shown as selected on the drawing surface. However, the empty text fields are actually selected that way, and can be deleted following that form of selection. There just are not any visible clues that they have been selected.

These empty text fields may be selected in the XML editor, and deleted there.

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

Forgot to mention, this is trunk r12935.

su_v (suv-lp)
tags: added: text
Revision history for this message
jazzynico (jazzynico) wrote :

On the one hand, empty text strings could be considered as unused elements and thus removed when using File>Clean up Document. But on the other hand, the feature was originally designed to get rid of unused defs, and the empty texts are not defs, and thus removing it should be handled elsewhere (File>Optimized SVG?).

Whatever the option we choose, I agree there should be an easy way (not sure the XML editor is one) to remove that kind of invisible elements when saving or even on the workspace (special placeholder?).

Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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